1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 22:30:12 +00:00

lseek: use STZ for APPLE2ENH

(As suggested in pull request.)
This commit is contained in:
Patrick Pelletier 2018-08-20 00:10:51 -07:00 committed by Oliver Schmidt
parent 68a115cacf
commit 8cb930b50e

View File

@ -85,8 +85,12 @@ seek_common:
bcs oserr
; Need to return the position in EAX
.ifdef __APPLE2ENH__
stz sreg+1
.else
lda #0
sta sreg+1
.endif
lda mliparam + MLI::MARK::POSITION+2
sta sreg
ldx mliparam + MLI::MARK::POSITION+1