Number Range
2 bit 0123
3 bit 01234567
n bit 01234567.................2*-1 ( *=n )
ex. Intel® Core™ i7-2600K Processor
signed 有號數 1 <---> -1
unsigned 無號數
1-3 Arithmetic Operations (加減乘除)
Carries
Sum
加
ex. 10110+10111 =101101
101100 Carries
================
10110
+ 10111
----------------------------
101101 Sum
減 1-2=-(2-1)=-1
ex. 10011-11110=-01011
11110
- 10011
-(-----------------------)
-01011
乘
1011
x 101
-----------------------
1011
0000
1011
-----------------------
110111
Binary → Octal/Hexadecimal:

沒有留言:
張貼留言