Apple2: factorize MLI pathname setting (up to -22 bytes)
This commit is contained in:
committed by
Oliver Schmidt
parent
850accee3a
commit
9390e5c2ce
16
libsrc/apple2/mli_set_pathname.s
Normal file
16
libsrc/apple2/mli_set_pathname.s
Normal file
@@ -0,0 +1,16 @@
|
||||
;
|
||||
; Colin Leroy-Mira, 2025 <colin@colino.net>
|
||||
;
|
||||
|
||||
.export mli_set_pathname_tos
|
||||
.include "zeropage.inc"
|
||||
.include "mli.inc"
|
||||
|
||||
; Sets MLI PATHNAME parameter from TOS
|
||||
mli_set_pathname_tos:
|
||||
; Set pushed name from TOS
|
||||
lda c_sp
|
||||
ldx c_sp+1
|
||||
sta mliparam + MLI::PATH::PATHNAME
|
||||
stx mliparam + MLI::PATH::PATHNAME+1
|
||||
rts
|
||||
Reference in New Issue
Block a user