BRK exceptions should resume *after* the BRK instruction

This commit is contained in:
Ry 2022-10-27 19:03:34 -07:00
parent a0fa0361ae
commit 3d1dff8495

View File

@ -924,6 +924,7 @@ static void vm_execute(vm_t *vm) {
case OP(SZ_HALF, OP_BRK): case OP(SZ_HALF, OP_BRK):
case OP(SZ_WORD, OP_BRK): { case OP(SZ_WORD, OP_BRK): {
VM_PRELUDE_0(); VM_PRELUDE_0();
vm->pointer_instr = vm->pointer_instr_mut;
vm_panic(vm, FOX32_ERR_DEBUGGER); vm_panic(vm, FOX32_ERR_DEBUGGER);
break; break;
}; };