some work towards SECOND in the internal DOS
This commit is contained in:
1 parent
59d8f215d7
commit
beefa98acc
2 files changed
+38
-13
No files matched your search
@@ -7,19 +7,25 @@
|
|||||||
|
|
||||||
dos_SECOND:
|
dos_SECOND:
|
||||||
|
|
||||||
|
phx
|
||||||
|
cmp #$60
|
||||||
|
bcs dos_SECOND_OPEN
|
||||||
|
|
||||||
; XXX provide implementation
|
; XXX provide implementation
|
||||||
|
|
||||||
|
plx
|
||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
dos_SECOND_OPEN:
|
||||||
|
|
||||||
dos_TKSA:
|
and #$1F
|
||||||
|
|
||||||
phx
|
ldx IDX1_LISTENER ; store channel
|
||||||
pha
|
sta XX_CHANNEL, X
|
||||||
and #$60
|
|
||||||
bne dos_TKSA_OPEN
|
cmp #$0F
|
||||||
pla
|
beq dos_SECOND_OPEN_cmd
|
||||||
|
|
||||||
; XXX provide implementation
|
; XXX provide implementation
|
||||||
|
|
||||||
@@ -28,9 +34,31 @@ dos_TKSA:
|
|||||||
rts
|
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:
|
dos_TKSA_OPEN:
|
||||||
|
|
||||||
pla
|
|
||||||
and #$1F
|
and #$1F
|
||||||
|
|
||||||
ldx IDX1_TALKER ; store channel
|
ldx IDX1_TALKER ; store channel
|
||||||
|
|||||||
@@ -18,14 +18,11 @@ open_iec:
|
|||||||
|
|
||||||
; We have a command to send to IEC device
|
; We have a command to send to IEC device
|
||||||
jsr LISTEN
|
jsr LISTEN
|
||||||
bcc @1
|
+bcs kernalerror_DEVICE_NOT_FOUND
|
||||||
jmp kernalerror_DEVICE_NOT_FOUND
|
|
||||||
@1:
|
|
||||||
lda SA
|
lda SA
|
||||||
jsr iec_cmd_open
|
jsr iec_cmd_open
|
||||||
bcc @2
|
+bcs kernalerror_DEVICE_NOT_FOUND
|
||||||
jmp kernalerror_DEVICE_NOT_FOUND
|
|
||||||
@2:
|
|
||||||
|
|
||||||
!ifdef CONFIG_MEMORY_MODEL_60K {
|
!ifdef CONFIG_MEMORY_MODEL_60K {
|
||||||
; We need our helpers to get to filenames under ROMs or IO area
|
; We need our helpers to get to filenames under ROMs or IO area
|
||||||
|
|||||||
Reference in new issue
Block a user