Skip to content

Commit

Permalink
Update zvm_opcodes.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Dec 11, 2023
1 parent 5500df8 commit ad35e56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/wire/zvm/zvm_opcodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1576,9 +1576,9 @@ end
ZVM.OpcodeTable[267] = function(self) --MLOOKAT
local seg1code = self.EmitOperandSegment[1] and "0" or "VM.DS"
local seg2code = self.EmitOperandSegment[2] and "0" or "VM.DS"
self:Dyn_Emit("$L EYE = VM:ReadVector3f($2 + VM."..(self.EmitOperandSegment[2] or "DS").."+0)")
self:Dyn_Emit("$L CENTER = VM:ReadVector3f($2 + VM."..(self.EmitOperandSegment[2] or "DS").."+3)")
self:Dyn_Emit("$L UP = VM:ReadVector3f($2 + VM."..(self.EmitOperandSegment[2] or "DS").."+6)")
self:Dyn_Emit("$L EYE = VM:ReadVector3f($2 + %s+0)",seg2code)
self:Dyn_Emit("$L CENTER = VM:ReadVector3f($2 + %s+3)",seg2code)
self:Dyn_Emit("$L UP = VM:ReadVector3f($2 + %s+6)",seg2code)
self:Dyn_EmitInterruptCheck()

self:Dyn_Emit("$L X = { 0, 0, 0 }")
Expand Down

0 comments on commit ad35e56

Please sign in to comment.