mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
Add RET and ARG instruct for VM
This commit is contained in:
parent
85bfc2c9d8
commit
5b2b2c987b
@ -149,6 +149,12 @@ Arg* pikaVM_runAsmInstruct(PikaObj* self,
|
||||
}
|
||||
if (instruct == JMP) {
|
||||
*jmp = fast_atoi(data);
|
||||
return NULL;
|
||||
}
|
||||
if (instruct == RET) {
|
||||
*jmp = -999;
|
||||
Arg* returnArg = arg_copy(queue_popArg(invokeQuene0));
|
||||
return returnArg;
|
||||
}
|
||||
if (instruct == JEZ) {
|
||||
Arg* assertArg = arg_copy(queue_popArg(invokeQuene0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user