2's compliment makes an 8 bit unsigned number (0-255 range) into a 7 bit signed number (-127 to 127 range). The sign bit states if the number is positive or negative.Thanks for the replies.
Another question: In the ALU, why is two's complement better to represent signed numbers?
Isn't it from -128 to +127 ?? or am I wrong ?(-127 to 127 range)
Yes, but rounding to equal numbers simplifies things.Isn't it from -128 to +127 ?? or am I wrong ?
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
[8051] Edsim51 7 Segment Display Issue | Programming & Languages | 1 | ||
Edsim51 7 Segment Display Issue | Microcontrollers | 0 | ||
8051 need help with code:CCC | Microcontrollers | 6 | ||
M | alarm control 8051 assembly code help | Programming & Languages | 3 | |
C | Erasing AT89S52 error | Microcontrollers | 0 |
by Aaron Carman
by Duane Benson
by Jake Hertz
by Jake Hertz