rename "sp" to "spc", avoid conflict with 4510 opcodes
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
.export _itoa, _utoa
|
||||
.import addysp1
|
||||
.import __hextab
|
||||
.importzp sp, sreg, ptr2, ptr3, tmp1
|
||||
.importzp spc, sreg, ptr2, ptr3, tmp1
|
||||
|
||||
.rodata
|
||||
specval:
|
||||
@@ -21,18 +21,18 @@ specval:
|
||||
|
||||
dopop: sta tmp1 ; will lose high byte
|
||||
ldy #0
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta ptr2
|
||||
sta ptr3
|
||||
iny
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta ptr2+1
|
||||
sta ptr3+1
|
||||
iny
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta sreg
|
||||
iny
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta sreg+1
|
||||
jmp addysp1 ; Bump stack pointer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user