20 lines
393 B
ArmAsm
20 lines
393 B
ArmAsm
; Function defined on pp272-273 of C64 Programmers Reference Guide
|
|
|
|
chkin:
|
|
|
|
;; Implemented according to 'C64 Programmers Reference Guide', page 277
|
|
|
|
;; First retrieve the FAT/LAT/SAT table index (and check if file is open)
|
|
|
|
; txa
|
|
; jsr find_fls
|
|
; bcs kernalerror_FILE_NOT_OPEN
|
|
|
|
;; Now we have table index in Y - check if file is open for reading
|
|
|
|
;; XXX continue implementation
|
|
|
|
rts
|
|
|
|
|