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

+4 -4
View File
@@ -20,17 +20,17 @@ CHRIN:
lda DFLTN
// Try $00 - keyboard
beq_far chrin_keyboard
beq_16 chrin_keyboard
// XXX Try $03 - screen
// cmp #$03
// beq_far chrin_screen
// beq_16 chrin_screen
#if HAS_RS232
// Try $02 - RS-232
cmp #$02
beq_far chrin_rs232
beq_16 chrin_rs232
#endif // HAS_RS232
@@ -40,7 +40,7 @@ chrin_getin: // jump entry for GETIN
// Try IEC devices
jsr iec_check_devnum_oc
bcc_far chrin_iec
bcc_16 chrin_iec
#endif // CONFIG_IEC
+3 -3
View File
@@ -28,16 +28,16 @@ CHROUT:
lda DFLTO
cmp #$03 // screen
beq_far chrout_screen
beq_16 chrout_screen
#if HAS_RS232
cmp #$02
beq_far chrout_rs232
beq_16 chrout_rs232
#endif
#if CONFIG_IEC
jsr iec_check_devnum_oc
bcc_far chrout_iec
bcc_16 chrout_iec
#endif
// FALLTROUGH
+4 -4
View File
@@ -23,7 +23,7 @@ CHKIN:
txa
jsr find_fls
bcs_far chkinout_file_not_open
bcs_16 chkinout_file_not_open
// Now we have table index in Y
@@ -38,19 +38,19 @@ CHKIN:
#if HAS_RS232
cmp #$02
beq_far chkin_rs232
beq_16 chkin_rs232
#endif // HAS_RS232
#if CONFIG_IEC
jsr iec_check_devnum_oc
bcc_far chkin_iec
bcc_16 chkin_iec
#endif // CONFIG_IEC
cmp #$03 // screen - only legal one left
bne_far chkinout_device_not_present
bne_16 chkinout_device_not_present
chkin_set_device:
lda FAT,Y
+4 -4
View File
@@ -23,7 +23,7 @@ CKOUT:
txa
jsr find_fls
bcs_far chkinout_file_not_open
bcs_16 chkinout_file_not_open
// Now we have table index in Y
@@ -38,19 +38,19 @@ CKOUT:
#if HAS_RS232
cmp #$02
beq_far ckout_rs232
beq_16 ckout_rs232
#endif // HAS_RS232
#if CONFIG_IEC
jsr iec_check_devnum_oc
bcc_far ckout_iec
bcc_16 ckout_iec
#endif // CONFIG_IEC
cmp #$03 // screen - only legal one left
bne_far chkinout_device_not_present
bne_16 chkinout_device_not_present
ckout_set_device:
lda FAT,Y
+2 -2
View File
@@ -25,12 +25,12 @@ CLOSE:
#if HAS_RS232
cmp #$02
beq_far close_rs232
beq_16 close_rs232
#endif
#if CONFIG_IEC
jsr iec_check_devnum_oc
bcc_far close_iec
bcc_16 close_iec
#endif
// FALLTROUGH
+2 -2
View File
@@ -60,14 +60,14 @@ open_has_space:
#if HAS_RS232
cmp #$02
beq_far open_rs232
beq_16 open_rs232
#endif
#if CONFIG_IEC
jsr iec_check_devnum_oc
bcc_far open_iec
bcc_16 open_iec
#endif
+3 -3
View File
@@ -43,17 +43,17 @@ LOAD:
#if CONFIG_TAPE_NORMAL
cmp #$01
beq_far load_tape_normal
beq_16 load_tape_normal
#endif
#if CONFIG_TAPE_TURBO
cmp #$07
beq_far load_tape_turbo
beq_16 load_tape_turbo
#endif
#if CONFIG_IEC
jsr iec_check_devnum_lvs
bcc_far load_iec
bcc_16 load_iec
#endif
jmp lvs_illegal_device_number
+1 -1
View File
@@ -25,7 +25,7 @@ SAVE:
#if CONFIG_IEC
jsr iec_check_devnum_lvs
bcc_far save_iec
bcc_16 save_iec
#endif
jmp lvs_illegal_device_number
+2 -2
View File
@@ -16,13 +16,13 @@ getin_real:
lda DFLTN
// Try $00 - keyboard
beq_far getin_keyboard
beq_16 getin_keyboard
#if HAS_RS232
// Try $02 - RS-232
cmp #$02
beq_far getin_rs232
beq_16 getin_rs232
#endif // HAS_RS232