Apple2: mutualize mli filename push (-0 to -18 bytes)

This commit is contained in:
Colin Leroy-Mira
2025-10-25 12:00:17 +02:00
committed by Oliver Schmidt
parent 3b8531a422
commit 280f296952
8 changed files with 19 additions and 23 deletions

View File

@@ -3,7 +3,7 @@
;
.export mli_file_info
.import pushname, popname, mli_file_info_direct
.import pushname_tos, popname, mli_file_info_direct
.import popax
.include "zeropage.inc"
.include "errno.inc"
@@ -13,9 +13,8 @@
; stored as C string in AX at top of stack
; Returns with carry set on error, and sets errno
mli_file_info:
; Get pathname
jsr popax
jsr pushname
; Get pathname from top of stack
jsr pushname_tos
bne oserr
jsr mli_file_info_direct