1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-08 06:29:32 +00:00

Added stub code to compiler for indirect goto

This commit is contained in:
Curtis F Kaylor 2019-03-22 19:35:28 -04:00
parent 65b50c7003
commit 076586be05

View File

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