Better Not operation

This commit is contained in:
Ian Gulliver
2021-11-19 16:45:39 -10:00
parent cc8e4a8ccb
commit e2dafcf21a

View File

@@ -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) {