1
0
mirror of https://github.com/cc65/cc65.git synced 2026-03-11 08:41:58 +00:00

telestrat target : lseek now returns position as it should

This commit is contained in:
jedeoric
2025-07-23 22:49:15 +02:00
committed by GitHub
parent 32313a8c56
commit 87ce45ba01

View File

@@ -35,5 +35,14 @@
ldy tmp3
ldx tmp1 ; Get whence
BRK_TELEMON XFSEEK
; A & X contains position (from 0 to 15 bits)
; RES (2 bytes) contains position (from 16 to 31 bits)
; Returns long
pha
lda RES+1
sta sreg+1
lda RES
sta sreg
pla
rts
.endproc