mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 02:56:44 +00:00
The example incorrectly displayed the signed -5
parent
839a22481d
commit
155edfef92
@ -58,7 +58,7 @@ The processor uses the most significant (leftmost, also called the sign bit) bit
|
|||||||
Let's take the number 5 for example (16-bit):
|
Let's take the number 5 for example (16-bit):
|
||||||
```
|
```
|
||||||
0000 0000 0000 0101 # The two's complement (signed) value is 5, the unsigned value is 5
|
0000 0000 0000 0101 # The two's complement (signed) value is 5, the unsigned value is 5
|
||||||
1111 1111 1111 1011 # The two's complement (signed) value is -5, the unsigned value is 65533
|
1111 1111 1111 1010 # The two's complement (signed) value is -5, the unsigned value is 65533
|
||||||
^
|
^
|
||||||
The sign bit is set
|
The sign bit is set
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user