changed "spc" to "c_sp"

This commit is contained in:
Gorilla Sapiens
2025-06-04 06:37:59 +00:00
parent 3d118dc6e5
commit b6f42f9ab2
204 changed files with 913 additions and 909 deletions

View File

@@ -5,17 +5,17 @@
;
.export addysp1, addysp
.importzp spc
.importzp c_sp
addysp1:
iny
addysp: pha ; Save A
clc
tya ; Get the value
adc spc ; Add low byte
sta spc ; Put it back
adc c_sp ; Add low byte
sta c_sp ; Put it back
bcc @L1 ; If no carry, we're done
inc spc+1 ; Inc high byte
inc c_sp+1 ; Inc high byte
@L1: pla ; Restore A
rts