This commit is contained in:
mrdudz
2025-06-23 17:09:06 +02:00
parent 4863a3e29b
commit 5fc15a7a60
204 changed files with 915 additions and 912 deletions

View File

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