handle extra address mode(s) for 65CE02 in the scanner
This commit is contained in:
@@ -1285,7 +1285,7 @@ Again:
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'S':
|
case 'S':
|
||||||
if ((CPU == CPU_4510) || (CPU == CPU_45GS02) || (CPU == CPU_65816)) {
|
if ((CPU == CPU_65CE02) || (CPU == CPU_4510) || (CPU == CPU_45GS02) || (CPU == CPU_65816)) {
|
||||||
CurTok.Tok = TOK_S;
|
CurTok.Tok = TOK_S;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1312,7 +1312,7 @@ Again:
|
|||||||
CurTok.Tok = TOK_OVERRIDE_ZP;
|
CurTok.Tok = TOK_OVERRIDE_ZP;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if ((CPU == CPU_4510) || (CPU == CPU_45GS02)) {
|
if ((CPU == CPU_65CE02) || (CPU == CPU_4510) || (CPU == CPU_45GS02)) {
|
||||||
CurTok.Tok = TOK_Z;
|
CurTok.Tok = TOK_Z;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1324,7 +1324,8 @@ Again:
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if ((CPU == CPU_4510 || CPU == CPU_45GS02) &&
|
/* FIXME: make sure we only alias "sp" to "s" when its really needed */
|
||||||
|
if (((CPU == CPU_65CE02) || (CPU == CPU_4510) || (CPU == CPU_45GS02)) &&
|
||||||
(toupper (SB_AtUnchecked (&CurTok.SVal, 0)) == 'S') &&
|
(toupper (SB_AtUnchecked (&CurTok.SVal, 0)) == 'S') &&
|
||||||
(toupper (SB_AtUnchecked (&CurTok.SVal, 1)) == 'P')) {
|
(toupper (SB_AtUnchecked (&CurTok.SVal, 1)) == 'P')) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user