From 2eba981c40a242d47878c46ffd691bc016e6208c Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Sun, 6 Dec 2020 22:16:36 +0100 Subject: [PATCH] partial IEC fix for MEGA65 --- src/kernal/iec/iec_tx_command.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kernal/iec/iec_tx_command.s b/src/kernal/iec/iec_tx_command.s index 32e421f3..a6b5bc0e 100644 --- a/src/kernal/iec/iec_tx_command.s +++ b/src/kernal/iec/iec_tx_command.s @@ -38,6 +38,10 @@ iec_tx_command: ; Common part of iec_txbyte and iec_tx_common - waits for devices ; and transmits a byte +!ifdef CONFIG_MB_M65 { + ; If in native mode, switch to 1 MHz + jsr m65_iec_slow +} clc ; Carry flag set is used for EOI mark jmp iec_tx_common }