not di does not seem to perform bitwise negation
not di does not seem to perform bitwise negation
I've been trying to debug a program I'm working on and have managed to narrow it down to a single not statement. I fail to understand how this could fail. My current suspicion is the fact that I'm using a 16 bit (aka short) register. Should I even be using this?
Code
nasm
.certain:
not di ; ← this line is the problem
bsf ax, di
GDB output
gdb
(gdb) p/t (short) $di $4 = 1101111110000000
(gdb) nexti
(gdb) p/t (short) $di $5 = 10000001111111