changed "spc" to "c_sp"
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
|
||||
.export _getsp
|
||||
.importzp spc
|
||||
.importzp c_sp
|
||||
|
||||
.proc _getsp
|
||||
|
||||
ldx spc+1
|
||||
lda spc
|
||||
ldx c_sp+1
|
||||
lda c_sp
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
@@ -112,17 +112,17 @@ static void get_command(void)
|
||||
#ifdef CHECK_SP
|
||||
static char firstcall = 1;
|
||||
static unsigned int good_sp;
|
||||
unsigned int spc;
|
||||
unsigned int c_sp;
|
||||
if (firstcall)
|
||||
spc = good_sp = getsp();
|
||||
c_sp = good_sp = getsp();
|
||||
else
|
||||
spc = getsp();
|
||||
c_sp = getsp();
|
||||
|
||||
if (spc != good_sp) {
|
||||
printf("SP: 0x%04X ***MISMATCH*** 0x%04X\n", spc, good_sp);
|
||||
if (c_sp != good_sp) {
|
||||
printf("SP: 0x%04X ***MISMATCH*** 0x%04X\n", c_sp, good_sp);
|
||||
}
|
||||
else if (verbose)
|
||||
printf("SP: 0x%04X\n", spc);
|
||||
printf("SP: 0x%04X\n", c_sp);
|
||||
#endif
|
||||
|
||||
arg1 = arg2 = arg3 = NULL;
|
||||
|
||||
Reference in New Issue
Block a user