some work towards SECOND in the internal DOS

This commit is contained in:
FeralChild64 committed 2021-02-12 18:53:38 +01:00
1 parent 59d8f215d7
commit beefa98acc
2 files changed
+38 -13

No files matched your search

+35 -7
View File
@@ -7,19 +7,25 @@
dos_SECOND:
phx
cmp #$60
bcs dos_SECOND_OPEN
; XXX provide implementation
plx
sec
rts
dos_SECOND_OPEN:
dos_TKSA:
and #$1F
phx
pha
and #$60
bne dos_TKSA_OPEN
pla
ldx IDX1_LISTENER ; store channel
sta XX_CHANNEL, X
cmp #$0F
beq dos_SECOND_OPEN_cmd
; XXX provide implementation
@@ -28,9 +34,31 @@ dos_TKSA:
rts
dos_SECOND_OPEN_cmd:
; XXX provide implementation
plx
clc
rts
dos_TKSA:
phx
cmp #$60
bcs dos_TKSA_OPEN
; XXX provide implementation
plx
sec
rts
dos_TKSA_OPEN:
pla
and #$1F
ldx IDX1_TALKER ; store channel
+3 -6
View File
@@ -18,14 +18,11 @@ open_iec:
; We have a command to send to IEC device
jsr LISTEN
bcc @1
jmp kernalerror_DEVICE_NOT_FOUND
@1:
+bcs kernalerror_DEVICE_NOT_FOUND
lda SA
jsr iec_cmd_open
bcc @2
jmp kernalerror_DEVICE_NOT_FOUND
@2:
+bcs kernalerror_DEVICE_NOT_FOUND
!ifdef CONFIG_MEMORY_MODEL_60K {
; We need our helpers to get to filenames under ROMs or IO area