Skip to content

Commit

Permalink
IWM: Only use fast/8MHz IWM timings for now
Browse files Browse the repository at this point in the history
The Mac SE selects slow mode, and then things don't work. Need to figure out what's going on there..
  • Loading branch information
twvd committed Nov 9, 2024
1 parent 44b7c86 commit 2111ce4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/src/mac/iwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ enum FluxTransitionTime {
}

impl FluxTransitionTime {
pub fn from_ticks_ex(mut ticks: FluxTicks, fast: bool, highf: bool) -> Option<Self> {
if !fast {
ticks *= 2;
}

pub fn from_ticks_ex(ticks: FluxTicks, _fast: bool, _highf: bool) -> Option<Self> {
// Below is from Integrated Woz Machine (IWM) Specification, 1982, rev 19, page 4.
match (fast, highf) {
// TODO fast/low frequency mode.. The Mac SE sets mode to 0x17, which makes things not work?
match (true, true) {
(false, false) | (true, false) => match ticks {
7..=20 => Some(Self::Short),
21..=34 => Some(Self::Medium),
Expand Down

0 comments on commit 2111ce4

Please sign in to comment.