]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/_fdesc.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / _fdesc.s
index 403af4b4291a32c60c9262ae59c0f5c268378e26..682bcb78eaa924f2d85e2b446a2b39f65c15dc06 100644 (file)
 
                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