directory structure cleanup

This commit is contained in:
FeralChild64 committed 2019-07-20 22:25:57 +02:00
1 parent c7727d4f0f
commit c30d4b31c9
75 files changed
+45 -45

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
;;
;; Checks whether device numbe (in .A) is a correct IEC device number
;;
;; Preserves .A, .X and .Y
;;
iec_devnum_check:
;; 0, 1, 2, or 3 are illegal - reserved for non-IEC devices on Commodore
cmp #$03
bpl +
bcs +
;; FALLTROUGH
iec_devnum_check_failed:
sec
rts
*
;; 30 and above are illegal too, due to IEC command encoding scheme,
;; see https://www.pagetable.com/?p=1031
cmp #$1E
bpl iec_devnum_check_failed
bcs iec_devnum_check_failed
clc
rts