Fix ASSIGN and F_ASSIGN

Same as previous commit, assigned value is pushed to the stack.
This commit is contained in:
Nunuhara Cabbage
2019-10-16 18:24:58 -07:00
parent 503ec4cdb1
commit 736f6dcad0
+1
View File
@@ -422,6 +422,7 @@ static void execute_instruction(int16_t opcode)
case F_ASSIGN:
val = stack_pop();
stack_pop_ref()[0] = val;
stack_push(val);
break;
case SH_GLOBALREF: // VARNO
index = get_argument(0);