mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-25 06:31:25 +00:00
Fixed bug parsing integer literals
This commit is contained in:
parent
ff0018c1d0
commit
71e15fb2d8
@ -348,8 +348,8 @@ void prsxpi(char trmntr, int asmxpr) {
|
|||||||
DEBUG("Parsing Integer Literal\n", 0)
|
DEBUG("Parsing Integer Literal\n", 0)
|
||||||
int number = prsnum(0xFFFF); //Parse Number into value
|
int number = prsnum(0xFFFF); //Parse Number into value
|
||||||
if (asmxpr) {
|
if (asmxpr) {
|
||||||
sprintf(value, "%d", number & 0xFF); asmlin("LDX", value);
|
sprintf(value, "#%d", number & 0xFF); asmlin("LDX", value);
|
||||||
sprintf(value, "%d", number >> 8); asmlin("LDY", value);
|
sprintf(value, "#%d", number >> 8); asmlin("LDY", value);
|
||||||
}
|
}
|
||||||
} else if (isalph()) {
|
} else if (isalph()) {
|
||||||
prsvar(FALSE, TRUE);
|
prsvar(FALSE, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user