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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user