65535 = 0xffff(unsigned)
-1 = 0xffff(signed)
In my bochsgdb
mov ax , 65535
and mov ax , -1
can change the content in AX to 11111111
I don't know why it has the same effect.
If in this way . How does 8086 assembly distinguish between -1 and 65535 ? and How do I know the bits are represented for unsigned or signed ?
I thy to google but I did not get the answer , I wish you can explain why is this ? please