1.introduction To Computing-2
1.introduction To Computing-2
Assembly Language
Dr. Ali Mohamed
Faculty of Engineering at Aswan
Aswan University
Text Books
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
The 80x86 Microprocessors 1.7 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
0 1 1 1 0
1100100
__________ 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
+
01000100
01010100 +84
ERROR
01100100 +100
__________
-72
10111000