dont accidentally use these until they are done
This commit is contained in:
parent
9f8575e5a2
commit
1191dd7476
4
vm/vm.c
4
vm/vm.c
|
|
@ -57,7 +57,7 @@ bool step_vm() {
|
||||||
mp += stack[--sp];
|
mp += stack[--sp];
|
||||||
/* jump to dest_ptr */
|
/* jump to dest_ptr */
|
||||||
pc = fn_ptr;
|
pc = fn_ptr;
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
case OP_RETURN: {
|
case OP_RETURN: {
|
||||||
/* TODO: Fix this one so it makes sense with a stack based system */
|
/* TODO: Fix this one so it makes sense with a stack based system */
|
||||||
|
|
@ -91,7 +91,7 @@ bool step_vm() {
|
||||||
|
|
||||||
/* jump to parent frame */
|
/* jump to parent frame */
|
||||||
pc = return_address;
|
pc = return_address;
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
case OP_SYSCALL: {
|
case OP_SYSCALL: {
|
||||||
u32 id = stack[--sp]; /* syscall id */
|
u32 id = stack[--sp]; /* syscall id */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue