rename "sp" to "spc", avoid conflict with 4510 opcodes
This commit is contained in:
@@ -39,7 +39,7 @@ Start:
|
||||
; Save the zero-page locations that we need.
|
||||
|
||||
ldx #zpspace-1
|
||||
L1: lda sp,x
|
||||
L1: lda spc,x
|
||||
sta zpsave,x
|
||||
dex
|
||||
bpl L1
|
||||
@@ -58,8 +58,8 @@ L1: lda sp,x
|
||||
|
||||
lda #<(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
|
||||
ldx #>(__MAIN_START__ + __MAIN_SIZE__ + __STACKSIZE__)
|
||||
sta sp
|
||||
stx sp+1 ; Set argument stack ptr
|
||||
sta spc
|
||||
stx spc+1 ; Set argument stack ptr
|
||||
|
||||
; Call the module constructors.
|
||||
|
||||
@@ -85,7 +85,7 @@ _exit: pha ; Save the return code on stack
|
||||
|
||||
ldx #zpspace-1
|
||||
L2: lda zpsave,x
|
||||
sta sp,x
|
||||
sta spc,x
|
||||
dex
|
||||
bpl L2
|
||||
|
||||
|
||||
@@ -296,11 +296,11 @@ MOVE: sei ; No interrupts
|
||||
jsr CMOVEY ; Set it
|
||||
|
||||
ldy #$01
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta XPos+1
|
||||
tax
|
||||
dey
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta XPos ; New X position
|
||||
|
||||
jsr CMOVEX ; Move the cursor
|
||||
|
||||
@@ -323,10 +323,10 @@ MOVE: sei ; No interrupts
|
||||
jsr MoveY
|
||||
|
||||
ldy #$01
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
tax
|
||||
dey
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
jsr MoveX ; Move the cursor
|
||||
|
||||
cli ; Allow interrupts
|
||||
|
||||
@@ -297,11 +297,11 @@ MOVE: sei ; No interrupts
|
||||
jsr CMOVEY ; Set it
|
||||
|
||||
ldy #$01
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta XPos+1
|
||||
tax
|
||||
dey
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta XPos ; New X position
|
||||
|
||||
jsr CMOVEX ; Move the cursor
|
||||
|
||||
@@ -297,11 +297,11 @@ MOVE: sei ; No interrupts
|
||||
jsr CMOVEY ; Set it
|
||||
|
||||
ldy #$01
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta XPos+1
|
||||
tax
|
||||
dey
|
||||
lda (sp),y
|
||||
lda (spc),y
|
||||
sta XPos ; New X position
|
||||
|
||||
jsr CMOVEX ; Move the cursor
|
||||
|
||||
Reference in New Issue
Block a user