Debugger STEP and BIGSTEP.

This commit is contained in:
2017-01-31 19:59:34 +01:00
parent e47cb247eb
commit 9b4e5be3b4
5 changed files with 16 additions and 2 deletions

6
vm.cpp
View File

@@ -241,6 +241,12 @@ const int vm_step() {
return vm_cycles;
}
const int vm_big_step() {
word* lines = parser_get_lines();
word current_line = lines[vm_pc];
while (vm_pc > 32768 || lines[vm_pc] == current_line) { vm_step(); }
return 0;
}
/*void vm_register_call(void(*callback)(t_stack&)) {
external_calls[numcallbacks++] = callback;
}*/