adapted to Kick Assembler, some documentation update
This commit is contained in:
1 parent
ae23dbae7b
commit
de27124b4f
198 files changed
+4181
-3976
No files matched your search
@@ -1,18 +1,18 @@
|
||||
|
||||
;; Just a helper routines
|
||||
// Just a helper routines
|
||||
|
||||
;; Find the LAT / SAT / FAT entry index where LAT corresponds to A, returns index in Y
|
||||
;; Carry flag set means not found
|
||||
// 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
|
||||
*
|
||||
beq find_fls_not_found // table empty
|
||||
!:
|
||||
dey
|
||||
bmi find_fls_not_found ; no more entries
|
||||
bmi find_fls_not_found // no more entries
|
||||
cmp LAT, y
|
||||
bne - ; does not match, try the next one
|
||||
bne !- // does not match, try the next one
|
||||
|
||||
clc
|
||||
rts
|
||||
|
||||
Reference in new issue
Block a user