Assembly
Assembly
Question: 1
To find the offset address the formula is: offset = Physical address – segment*10
So,
b. Solution:-
The General Formula is: Physical address = segment*10 + offset
To find the offset address the formula is: segment = (Physical address – offset)/10
So,
Segment = 56CF0/10
So,
Question: 2
What is binary representation of D5B7h? Also find the signed and unsigned
decimal interpretation of this number.
The binary representation of D5B7h is (1101 0101 1011 0111)2.
Signed number:-
1101 0101 1011 0111
Unsigned number:-
0010101001001001
=(0*215+0*214+1*213+0*212+1*211+0*210+1*29+0*28+0*27+1*26+0*25+0*24+1*23+0*22+0*21+
1*20)10
Question: 4
a. FE02h+1E01h
b. 10110100b-10010111b
FE02h+1E01h
Solution:-
FE02
+1E01
------------
11C03
------------
10110100b-10010111b
Solution:-
10110100
-10010111
----------------
00011101
----------------