Use structs
git-svn-id: svn://svn.cc65.org/cc65/trunk@2707 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -15,12 +15,12 @@
|
||||
|
||||
ldy #0
|
||||
lda #_FOPEN
|
||||
Loop: and __filetab + _FILE_f_flags,y ; load flags
|
||||
Loop: and __filetab + _FILE::f_flags,y ; load flags
|
||||
beq Found ; jump if closed
|
||||
.repeat ::_FILE_size
|
||||
.repeat .sizeof(_FILE)
|
||||
iny
|
||||
.endrepeat
|
||||
cpy #(FOPEN_MAX * _FILE_size) ; Done?
|
||||
cpy #(FOPEN_MAX * .sizeof(_FILE)) ; Done?
|
||||
bne Loop
|
||||
|
||||
; File table is full
|
||||
|
||||
Reference in New Issue
Block a user