Apple2: Rewrite opendir in assembly
58 bytes size gain
This commit is contained in:
15
libsrc/apple2/dir.inc
Normal file
15
libsrc/apple2/dir.inc
Normal file
@@ -0,0 +1,15 @@
|
||||
.struct DIR
|
||||
FD .word
|
||||
ENTRY_LENGTH .byte
|
||||
ENTRIES_PER_BLOCK .byte
|
||||
CURRENT_ENTRY .byte
|
||||
|
||||
.union
|
||||
BYTES .byte 512
|
||||
.struct CONTENT
|
||||
PREV_BLOCK .word
|
||||
NEXT_BLOCK .word
|
||||
ENTRIES .byte
|
||||
.endstruct
|
||||
.endunion
|
||||
.endstruct
|
||||
Reference in New Issue
Block a user