added full protection against illegal IEC device numbers

This commit is contained in:
FeralChild64 committed 2019-07-20 16:30:58 +02:00
1 parent f26431b502
commit 2613553ef3
5 files changed
+49 -2

No files matched your search

+4 -1
View File
@@ -14,7 +14,10 @@
talk:
and #$1F ; make sure bits encoding the command are cleared out
;; First check whether device number is correct
jsr iec_devnum_check
bcs kernalerror_DEVICE_NOT_FOUND
;; Encode and execute the command
ora #$40
sta BSOUR
jmp iec_tx_command