1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00
This commit is contained in:
jede 2023-05-23 23:15:23 +02:00
parent 1377ba0d36
commit 1ca9d7e9e7
2 changed files with 12 additions and 12 deletions

View File

@ -31,12 +31,12 @@
BRK_TELEMON XFREAD
; compute nb of bytes read
sec
lda PTR_READ_DEST
sbc ptr2
sta tmp1
lda PTR_READ_DEST+1
sbc ptr2+1
tax
lda PTR_READ_DEST
sbc ptr2
sta tmp1
lda PTR_READ_DEST+1
sbc ptr2+1
tax
lda tmp1
rts

View File

@ -45,12 +45,12 @@ next:
; compute nb of bytes written
sec
lda PTR_READ_DEST
sbc ptr1
sta tmp1
lda PTR_READ_DEST+1
sbc ptr1+1
tax
lda PTR_READ_DEST
sbc ptr1
sta tmp1
lda PTR_READ_DEST+1
sbc ptr1+1
tax
lda tmp1
rts