Professional Documents
Culture Documents
Tutorial 4
Tutorial 4
Tutorial 4
1.
Convert 16810 to binaryBCD? Show steps for all possible methods.
2.
Convert 16810 to binary base 2? Show steps for all possible methods.
Method 1
168 ÷ 2 = 84 (Remainder 0)
84 ÷ 2 = 42 (Remainder 0)
42 ÷ 2 = 21 (Remainder 0)
21 ÷ 2 = 10 (Remainder 1)
10 ÷ 2 = 5 (Remainder 0)
5 ÷ 2 = 2 (Remainder 1)
2 ÷ 2 = 1 (Remainder 0)
1 ÷ 2 = 0 (Remainder 1)
1010 10002
Method 2
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
BCD1 = 0010
BCD2 = 0111
0010
+ 0100 0110
0100 1000
4.
Convert 0010 0011 0001BCD to binary base 2? Perform direct conversion and show
the steps. For BCD2 and BCD3, use repeat additions of 1010 and 10010, respectively.
BCD1 = 0001
BCD2 = 0011
BCD3 = 0010
0001
0001 1110
+ 1100 1000
1110 0111
6.
Add three packed BCD numbers for 2410, 6610 and 5110. Show the steps.
7.
Find 2’s complement for value 67H. Shows steps for all possible methods to find
the 2’s complement.
Method 1
Method 2
1000 0101
+ 1001 0111
10001 1100
CY = 0
S=0
9.
What is the difference of 85H – D9H? Show the internal steps performed by 8085
for this unsigned binary subtraction and CY, S flags.
1000 0101
+ 0010 0111
01010 1100
CY = 1
S=1
10.
What is the addition of 8510 + 6910? Show the internal steps performed by 8085
for this signed binary addition and CY, S flags.
0101 0101
+ 0100 0101
1001 1010
Result = 15410
CY = 0
S=1
11.
What is the difference of 85H – 69H? Show the internal steps performed by 8085
for this signed binary subtraction and CY, S flags.
CY = 0
S=0
12.
What is the difference of 85H – D9H? Show the internal steps performed by 8085
for this signed binary subtraction and CY, S flags.
CY = 0
S=1