Rewrite fgets in asm

-104 bytes, -1% cycles
This commit is contained in:
Colin Leroy-Mira
2024-01-11 19:31:04 +01:00
parent 57e65a6bf6
commit 1f820d0ae8
4 changed files with 135 additions and 72 deletions

View File

@@ -6,7 +6,7 @@
.export _statvfs
.import _dio_query_sectsize
.import mli_file_info, pushax, popax, popptr1
.import mli_file_info, pushax, popax, popptr1, pushptr1
.include "zeropage.inc"
.include "apple2.inc"
.include "errno.inc"
@@ -45,9 +45,7 @@ _statvfs:
sty vol_sep ; Register '/' index
lda #$00
sta (ptr1),y ; Cut pathname at first slash
: lda ptr1
ldx ptr1+1
jsr pushax
: jsr pushptr1
jsr mli_file_info