small improvements for LOAD command and IEC routines
This commit is contained in:
1 parent
3cae7f7366
commit
ecf1b3aa50
8 files changed
+96
-40
No files matched your search
@@ -0,0 +1,23 @@
|
||||
|
||||
;; Just a helper routine
|
||||
|
||||
;; Find the LAT / SAT / FAT entry index where LAT corresponds to A, returns index in Y
|
||||
;; Carry flag set means not found
|
||||
|
||||
find_fls:
|
||||
|
||||
ldy LDTND
|
||||
beq find_fls_not_found ; table empty
|
||||
*
|
||||
dey
|
||||
bmi find_fls_not_found ; no more entries
|
||||
cmp LAT, y
|
||||
bne - ; does not match, try the next one
|
||||
|
||||
clc
|
||||
rts
|
||||
|
||||
find_fls_not_found:
|
||||
|
||||
sec
|
||||
rts
|
||||
Reference in new issue
Block a user