From e2dafcf21af894020e8c715510fbe7cc86f213cf Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 19 Nov 2021 16:45:39 -1000 Subject: [PATCH] Better Not operation --- vm/ophandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/ophandler.go b/vm/ophandler.go index 2959259..d58055f 100644 --- a/vm/ophandler.go +++ b/vm/ophandler.go @@ -81,7 +81,7 @@ func (state *State) handleDivideSigned(instr *Instruction) { func (state *State) handleNot(instr *Instruction) { in := state.readUnsigned(&instr.Operand1) - state.writeUnsigned(&instr.Operand1, in^uint64(0xffffffffffffffff)) + state.writeUnsigned(&instr.Operand1, ^in) } func (state *State) handleAnd(instr *Instruction) {