Skip to content

Commit

Permalink
LOOPB now ends on 0 instead of -1 like other loops (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone authored Aug 12, 2024
1 parent e0eff57 commit 8fea6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/wire/zvm/zvm_opcodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ end
ZVM.OpcodeTable[26] = function(self) --LOOPB
self:Dyn_EmitForceRegisterLocal("EBX")
self:Dyn_Emit("EBX = EBX - 1")
self:Dyn_Emit("if VM.EBX ~= 0 then")
self:Dyn_Emit("if EBX ~= 0 then")
self:Dyn_Emit("VM:Jump($1)")
self:Dyn_EmitState()
self:Dyn_EmitBreak()
Expand Down

0 comments on commit 8fea6c3

Please sign in to comment.