Skip to content

Commit

Permalink
Mark the opcodes that check for microcode debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Nov 28, 2023
1 parent 3090ebf commit 19c3e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/wire/zvm/zvm_opcodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ ZVM.OpcodeTable[45] = function(self) --CLP
self:Dyn_Emit("VM.PF = 0")
end
ZVM.OpcodeTable[46] = function(self) --STD
-- TODO: Remove microcode debugging, it's not possible to access normally.
if self.MicrocodeDebug then
self:Dyn_Emit("VM.Debug = true")
end
Expand Down Expand Up @@ -1170,6 +1171,7 @@ ZVM.OpcodeTable[137] = function(self) --EXTRETP
self.OpcodeTable[110](self) -- as EXTRET
end
ZVM.OpcodeTable[139] = function(self) --CLD
-- TODO: Remove microcode debugging, it's not possible to access normally.
if self.MicrocodeDebug then
self:Dyn_Emit("VM.Debug = false")
end
Expand Down

0 comments on commit 19c3e27

Please sign in to comment.