even more startup tweaks

This commit is contained in:
FeralChild64 committed 2019-10-20 09:03:23 +02:00
1 parent 455ca2ee56
commit dc63912edd
8 files changed
+30 -16

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
// 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