mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fix ftell() on Apple II to return the correct value.
Fixes this issue: https://github.com/cc65/cc65/issues/722 ftell() returns the value returned by lseek(), and lseek() for the Apple II wasn't returning a value.
This commit is contained in:
parent
9fee605e65
commit
68a115cacf
@ -84,6 +84,14 @@ seek_common:
|
||||
jsr callmli
|
||||
bcs oserr
|
||||
|
||||
; Need to return the position in EAX
|
||||
lda #0
|
||||
sta sreg+1
|
||||
lda mliparam + MLI::MARK::POSITION+2
|
||||
sta sreg
|
||||
ldx mliparam + MLI::MARK::POSITION+1
|
||||
lda mliparam + MLI::MARK::POSITION
|
||||
|
||||
rts
|
||||
|
||||
; Load errno code
|
||||
|
Loading…
Reference in New Issue
Block a user