more work towards Mega65 banking support

This commit is contained in:
FeralChild64 committed 2020-01-11 19:22:33 +01:00
1 parent 734ec07afb
commit 49693f1543
26 files changed
+118 -65

No files matched your search

+3 -3
View File
@@ -14,18 +14,18 @@ chkin_iec:
lda LAT, Y
cmp #$01
beq_far chkin_file_not_input
beq_16 chkin_file_not_input
// Send TALK + TKSA first
lda FAT,Y
jsr TALK
bcs_far chkinout_device_not_present
bcs_16 chkinout_device_not_present
lda LAT, Y
ora #$60
jsr TKSA
bcs_far chkinout_device_not_present
bcs_16 chkinout_device_not_present
jmp chkin_set_device
+1 -1
View File
@@ -9,7 +9,7 @@ chrout_iec:
lda SCHAR
jsr JCIOUT
bcc_far chrout_done_success
bcc_16 chrout_done_success
jmp chrout_done_fail
+3 -3
View File
@@ -13,18 +13,18 @@ ckout_iec:
// Fail if the file is open for reading (secondary address 0)
lda LAT, Y
beq_far ckout_file_not_output
beq_16 ckout_file_not_output
// Send LISTEN + SECOND first
lda FAT,Y
jsr LISTEN
bcs_far chkinout_device_not_present
bcs_16 chkinout_device_not_present
lda LAT, Y
ora #$60
jsr SECOND
bcs_far chkinout_device_not_present
bcs_16 chkinout_device_not_present
jmp ckout_set_device
+1 -1
View File
@@ -23,7 +23,7 @@ clrchn_iec:
jsr iec_check_devnum_oc
// If it was IEC device - send UNLSN first
bcc_far UNLSN
bcc_16 UNLSN
rts
+1 -1
View File
@@ -16,7 +16,7 @@ iec_rx_dispatch:
lda IECPROTO
cmp #$01
beq_far jiffydos_rx_byte
beq_16 jiffydos_rx_byte
// FALLTROUGH
+4 -4
View File
@@ -30,7 +30,7 @@ load_iec:
// Check file name
lda FNLEN
beq_far kernalerror_FILE_NAME_MISSING
beq_16 kernalerror_FILE_NAME_MISSING
// Display SEARCHING FOR + filename
jsr lvs_display_searching_for
@@ -106,12 +106,12 @@ load_iec:
#if CONFIG_IEC_JIFFYDOS
cmp #$01
beq_far jiffydos_load // branch if JiffyDOS
beq_16 jiffydos_load // branch if JiffyDOS
#endif
#if CONFIG_IEC_DOLPHINDOS
cmp #$02
beq_far dolphindos_load // branch if DolphinDOS
beq_16 dolphindos_load // branch if DolphinDOS
#endif
#endif
@@ -149,7 +149,7 @@ load_iec_loop:
phx_trash_a
jsr udtim_keyboard
jsr STOP
bcs_far load_break_error
bcs_16 load_break_error
plx_trash_a
!:
// Check for EOI - if so, this was the last byte
+1 -1
View File
@@ -16,7 +16,7 @@ save_iec:
// Check file name
lda FNLEN
beq_far kernalerror_FILE_NAME_MISSING
beq_16 kernalerror_FILE_NAME_MISSING
// Display SAVING
jsr lvs_display_saving