This commit is contained in:
Andre Wagner
2026-05-06 12:00:53 -05:00
parent 7ecffcfdda
commit 8f851a330e
3 changed files with 8 additions and 8 deletions

View File

@@ -340,11 +340,11 @@ function VM:_step()
elseif op.operator == 'set' then
assert(op.operand >= 0)
local a = self.stack:pop()
self.stack[op.operand + 1] = a
self.stack[op.operand] = a
elseif op.operator == 'dupv' then
assert(op.operand >= 0)
local a = self.stack[op.operand + 1]
local a = self.stack[op.operand]
self.stack:push(a)
--