From 2111ce4d0da91ff49c8c42e20ee3c617b1617157 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 9 Nov 2024 22:21:18 +0100 Subject: [PATCH] IWM: Only use fast/8MHz IWM timings for now The Mac SE selects slow mode, and then things don't work. Need to figure out what's going on there.. --- core/src/mac/iwm.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/src/mac/iwm.rs b/core/src/mac/iwm.rs index ce56db4..c0627a9 100644 --- a/core/src/mac/iwm.rs +++ b/core/src/mac/iwm.rs @@ -27,13 +27,10 @@ enum FluxTransitionTime { } impl FluxTransitionTime { - pub fn from_ticks_ex(mut ticks: FluxTicks, fast: bool, highf: bool) -> Option { - if !fast { - ticks *= 2; - } - + pub fn from_ticks_ex(ticks: FluxTicks, _fast: bool, _highf: bool) -> Option { // 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),