If halt
ed, report that the entire tick was completed
This commit is contained in:
parent
82668e10d3
commit
acbfa82a18
|
@ -1131,6 +1131,8 @@ static err_t vm_resume(vm_t *vm, uint32_t count, uint32_t *executed) {
|
||||||
remaining -= 1;
|
remaining -= 1;
|
||||||
*executed += 1;
|
*executed += 1;
|
||||||
}
|
}
|
||||||
|
if (vm->halted)
|
||||||
|
*executed = count;
|
||||||
return FOX32_ERR_OK;
|
return FOX32_ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1170,7 +1172,6 @@ static fox32_err_t vm_raise(vm_t *vm, uint16_t vector) {
|
||||||
}
|
}
|
||||||
|
|
||||||
vm->pointer_instr = pointer_handler;
|
vm->pointer_instr = pointer_handler;
|
||||||
vm->halted = true;
|
|
||||||
vm->flag_interrupt = false;
|
vm->flag_interrupt = false;
|
||||||
|
|
||||||
return FOX32_ERR_OK;
|
return FOX32_ERR_OK;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user