rename "sp" to "spc", avoid conflict with 4510 opcodes
This commit is contained in:
@@ -47,7 +47,7 @@ _exit: jsr donelib
|
||||
|
||||
ldx #zpspace - 1
|
||||
L2: lda zpsave,x
|
||||
sta sp,x
|
||||
sta spc,x
|
||||
dex
|
||||
bpl L2
|
||||
|
||||
@@ -64,7 +64,7 @@ L2: lda zpsave,x
|
||||
; Save the zero-page area that we're about to use.
|
||||
|
||||
init: ldx #zpspace - 1
|
||||
L1: lda sp,x
|
||||
L1: lda spc,x
|
||||
sta zpsave,x
|
||||
dex
|
||||
bpl L1
|
||||
@@ -74,8 +74,8 @@ L1: lda sp,x
|
||||
|
||||
lda #<(__MAIN_START__ + __MAIN_SIZE__)
|
||||
ldx #>(__MAIN_START__ + __MAIN_SIZE__)
|
||||
sta sp
|
||||
stx sp+1 ; Set argument stack ptr
|
||||
sta spc
|
||||
stx spc+1 ; Set argument stack ptr
|
||||
|
||||
; Call the module constructors.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
.import addysp,popax
|
||||
|
||||
.importzp sp,tmp2,tmp3,tmp1
|
||||
.importzp spc,tmp2,tmp3,tmp1
|
||||
|
||||
|
||||
.include "telestrat.inc"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
;
|
||||
.export _wherex
|
||||
|
||||
.importzp sp
|
||||
.importzp spc
|
||||
|
||||
.include "telestrat.inc"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user