correctly detect device not present
This commit is contained in:
1 parent
dcebe17e51
commit
148a285633
2 files changed
+11
-1
No files matched your search
@@ -86,6 +86,16 @@ cmd_unimplemented:
|
|||||||
|
|
||||||
;; Try to open an IEC file
|
;; Try to open an IEC file
|
||||||
jsr $ffc0
|
jsr $ffc0
|
||||||
|
bcc +
|
||||||
|
|
||||||
|
;; A = KERNAL error code, which also almost match
|
||||||
|
;; basic ERROR codes, so we can just copy the
|
||||||
|
;; error code to X, decrement, and handle normally
|
||||||
|
tax
|
||||||
|
dex
|
||||||
|
jmp do_basic_error
|
||||||
|
|
||||||
|
*
|
||||||
sta $0427
|
sta $0427
|
||||||
lda #$00
|
lda #$00
|
||||||
ror
|
ror
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ do_TO_MANY_FILES_error:
|
|||||||
|
|
||||||
;; Error # in X
|
;; Error # in X
|
||||||
|
|
||||||
;; do_basic_error:
|
do_basic_error:
|
||||||
;; "?"
|
;; "?"
|
||||||
txa
|
txa
|
||||||
pha
|
pha
|
||||||
|
|||||||
Reference in new issue
Block a user