mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +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)
|
||||
int number = prsnum(0xFFFF); //Parse Number into value
|
||||
if (asmxpr) {
|
||||
sprintf(value, "%d", number & 0xFF); asmlin("LDX", value);
|
||||
sprintf(value, "%d", number >> 8); asmlin("LDY", value);
|
||||
sprintf(value, "#%d", number & 0xFF); asmlin("LDX", value);
|
||||
sprintf(value, "#%d", number >> 8); asmlin("LDY", value);
|
||||
}
|
||||
} else if (isalph()) {
|
||||
prsvar(FALSE, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user