started MEGA65 speed handling rework, always run IEC code with disabled badlines

This commit is contained in:
FeralChild64 committed 2021-02-24 18:44:18 +01:00
1 parent 22a5754539
commit cb16d5d15c
13 files changed
+136 -76

No files matched your search

+2 -2
View File
@@ -26,8 +26,8 @@ iec_return_success:
+plx_trash_a
!ifdef CONFIG_MB_M65 {
; If in native mode, switch back to fast mode
jsr m65_iec_fast
; Restore the proper speed
jsr m65_speed_restore
}
; Report success
+6 -6
View File
@@ -17,8 +17,8 @@
iec_rx_dispatch:
!ifdef CONFIG_MB_M65 {
; If in native mode, switch to 1 MHz
jsr m65_iec_slow
; Ensure 1 Mhz mode and disabled badlines
jsr m65_speed_iec
}
lda IECPROTO
@@ -33,8 +33,8 @@ iec_rx_dispatch:
iec_rx_byte:
!ifdef CONFIG_MB_M65 { !ifndef CONFIG_IEC_JIFFYDOS {
; If in native mode, switch to 1 MHz
jsr m65_iec_slow
; Ensure 1 Mhz mode and disabled badlines
jsr m65_speed_iec
} }
; Store .X and .Y on the stack - preserve them
@@ -161,8 +161,8 @@ iec_rx_acknowledge:
iec_rx_end:
!ifdef CONFIG_MB_M65 {
; If in native mode, switch back to fast mode
jsr m65_iec_fast
; Restore the proper speed
jsr m65_speed_restore
}
+ply_trash_a
+2 -2
View File
@@ -21,8 +21,8 @@ iec_turnaround_to_listen:
sei
!ifdef CONFIG_MB_M65 {
; If in native mode, switch to 1 MHz
jsr m65_iec_slow
; Ensure 1 Mhz mode and disabled badlines
jsr m65_speed_iec
}
; Pull DATA, release CLK and ATN (we are not sending commands)
+4 -4
View File
@@ -20,8 +20,8 @@ iec_tx_dispatch:
php ; preserve C flag for EOI indication
!ifdef CONFIG_MB_M65 {
; If in native mode, switch to 1 MHz
jsr m65_iec_slow
; Ensure 1 Mhz mode and disabled badlines
jsr m65_speed_iec
}
lda IECPROTO
@@ -41,9 +41,9 @@ iec_tx_dispatch:
iec_tx_byte:
!ifdef CONFIG_MB_M65 { !ifndef CONFIG_IEC_JIFFYDOS {
; If in native mode, switch to 1 MHz
; Ensure 1 Mhz mode and disabled badlines
php
jsr m65_iec_slow
jsr m65_speed_iec
plp
} }
+2 -2
View File
@@ -39,8 +39,8 @@ iec_tx_command:
; and transmits a byte
!ifdef CONFIG_MB_M65 {
; If in native mode, switch to 1 MHz
jsr m65_iec_slow
; Ensure 1 Mhz mode and disabled badlines
jsr m65_speed_iec
}
clc ; Carry flag set is used for EOI mark
jmp iec_tx_common