mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-04-20 18:37:57 +00:00
Added stub code to compiler for indirect goto
This commit is contained in:
parent
65b50c7003
commit
076586be05
@ -274,7 +274,12 @@ void pelse(void) {
|
||||
/* parse and compile if statement */
|
||||
void pgoto(void) {
|
||||
DEBUG("Parsing GOTO statement\n", 0)
|
||||
int indrct = look('(');
|
||||
if (!chkadr(ADNONE, FALSE)) getwrd();
|
||||
if (indrct) {
|
||||
expect(')');
|
||||
ERROR("Indirect GOTO Not Implemented\n", 0, EXIT_FAILURE)
|
||||
}
|
||||
expect(';');
|
||||
asmlin("JMP", word);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user