rename "sp" to "spc", avoid conflict with 4510 opcodes

This commit is contained in:
Gorilla Sapiens
2025-06-04 02:06:40 +00:00
parent 58171691d0
commit 3d118dc6e5
204 changed files with 908 additions and 908 deletions

View File

@@ -5,16 +5,16 @@
;
.export ldax0sp, ldaxysp
.importzp sp
.importzp spc
; Beware: The optimizer knows about the value in Y after return!
ldax0sp:
ldy #1
ldaxysp:
lda (sp),y ; get high byte
lda (spc),y ; get high byte
tax ; and save it
dey ; point to lo byte
lda (sp),y ; load low byte
lda (spc),y ; load low byte
rts