Professional Documents
Culture Documents
Architecture
Reference:
Quotient Remainder
35/2 = 17 1 (LSB) Beside the binary point (100011.0)2
17/2 = 8 1
8/2 = 4 0
4/2 = 2 0
2/2 = 1 0
1/2 = 0 1 (MSB)
(35)10 = (100011)2
7 SVC ACADEET Dr. M. Ibrahim Assembly Language
Example: Convert (0.35)10 to binary
(0.35)10 = (0.010110)2
3 1 5
1 1 0 1 0 1
1 1 0 1 0 1
0 0 1 0 1
000100
0 1 0 0 1
1010100
1100100 0 1 1 1 0
__________ 1 0 0 0 1
10111000 1 0 1 1 0
1 1 0 1 0
(84)10 + (100)10 = (184)10
1 1 1 1 1