Apple2: Rewrite opendir in assembly

58 bytes size gain
This commit is contained in:
Colin Leroy-Mira
2024-11-09 18:09:09 +01:00
parent 394d3b1964
commit 819a314508
3 changed files with 171 additions and 112 deletions

15
libsrc/apple2/dir.inc Normal file
View 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