add: jump to relative line number

This commit is contained in:
2024-01-19 23:15:36 +01:00
parent 011d748a45
commit 3e1e679975
2 changed files with 6 additions and 0 deletions

View File

@@ -140,6 +140,11 @@ void jmp() {
return;
}
}
int line_off = atoi(state->args->arg1);
if (line_off) {
state->curr_line += line_off;
return;
}
state->last_jmp_code = 1;
return;