rename "sp" to "spc", avoid conflict with 4510 opcodes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
; this module also contains the popax function.
|
||||
|
||||
.export popax, incsp2
|
||||
.importzp sp
|
||||
.importzp spc
|
||||
|
||||
.macpack cpu
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
.proc popax
|
||||
|
||||
ldy #1
|
||||
lda (sp),y ; get hi byte
|
||||
lda (spc),y ; get hi byte
|
||||
tax ; into x
|
||||
.if (.cpu .bitand ::CPU_ISET_65SC02)
|
||||
lda (sp) ; get lo byte
|
||||
lda (spc) ; get lo byte
|
||||
.else
|
||||
dey
|
||||
lda (sp),y ; get lo byte
|
||||
lda (spc),y ; get lo byte
|
||||
.endif
|
||||
|
||||
.endproc
|
||||
@@ -29,14 +29,14 @@
|
||||
|
||||
.proc incsp2
|
||||
|
||||
inc sp ; 5
|
||||
inc spc ; 5
|
||||
beq @L1 ; 2
|
||||
inc sp ; 5
|
||||
inc spc ; 5
|
||||
beq @L2 ; 2
|
||||
rts
|
||||
|
||||
@L1: inc sp ; 5
|
||||
@L2: inc sp+1 ; 5
|
||||
@L1: inc spc ; 5
|
||||
@L2: inc spc+1 ; 5
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
Reference in New Issue
Block a user