Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 4806000

Browse files
committed
fix pla/pha instead of tmp1
1 parent 1ca9d7e commit 4806000

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libsrc/telestrat/read.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
sec
3434
lda PTR_READ_DEST
3535
sbc ptr2
36-
sta tmp1
36+
pha
3737
lda PTR_READ_DEST+1
3838
sbc ptr2+1
3939
tax
40-
lda tmp1
40+
pla
4141

4242
rts
4343
.endproc

libsrc/telestrat/write.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ next:
4747
sec
4848
lda PTR_READ_DEST
4949
sbc ptr1
50-
sta tmp1
50+
pha
5151
lda PTR_READ_DEST+1
5252
sbc ptr1+1
5353
tax
54-
lda tmp1
54+
pla
5555
rts
5656

5757

0 commit comments

Comments
 (0)