diff --git a/lua/wire/zvm/zvm_opcodes.lua b/lua/wire/zvm/zvm_opcodes.lua index ad8a235..b878b9f 100644 --- a/lua/wire/zvm/zvm_opcodes.lua +++ b/lua/wire/zvm/zvm_opcodes.lua @@ -234,11 +234,11 @@ ZVM.OpcodeTable[28] = function(self) --SPG self:Dyn_Emit("end") end ZVM.OpcodeTable[29] = function(self) --CPG - self:Dyn_Emit("$L idx = math.floor($1 / 128)") + self:Dyn_Emit("$L IDX = math.floor($1 / 128)") self:Dyn_Emit("$L PAGE = VM:GetPageByIndex(IDX)") self:Dyn_EmitInterruptCheck() - self:Dyn_Emit("if VM.CurrentPage.RunLevel <= VM.Page[idx].RunLevel then") + self:Dyn_Emit("if VM.CurrentPage.RunLevel <= VM.Page[IDX].RunLevel then") self:Dyn_Emit("PAGE.Read = 1") self:Dyn_Emit("PAGE.Write = 1") self:Dyn_Emit("VM:SetPageByIndex(IDX)")