changed "spc" to "c_sp"

This commit is contained in:
Gorilla Sapiens
2025-06-04 06:37:59 +00:00
parent 3d118dc6e5
commit b6f42f9ab2
204 changed files with 913 additions and 909 deletions

View File

@@ -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

View File

@@ -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;