machine.lua:158
[0x0e]=function(self) -- MNZ RET, R, &nn # free-register conditional move to literal address
local a, b = convreg(self, self.memory[self.IP+1])
if a then
self.memory[self.memory[self.IP+1]] = self[b]
end
return 3;
end;
'if a then' will always be true.
And on the next line, shouldn't that be 'self.IP+2'?
It seems to me that his function has some errors.
machine.lua:158 [0x0e]=function(self) -- MNZ RET, R, &nn # free-register conditional move to literal address local a, b = convreg(self, self.memory[self.IP+1])
'if a then' will always be true.
And on the next line, shouldn't that be 'self.IP+2'?