Address 200H contains the byte 3FH. What is the decimal equivalent of 3FH
22 views
- 63 (Correct Answer)
- 32
- 16
- 38
Explanation
3 - 0011.
F - 1111.
H - in hexadecimal.
3F = (00111111)2 = 2^7*0+2^6*0+2^5*1+2^4*1+2^3*1+2^2*1+2^1*1+2^0*1.
= 0+0+32*1+16*1+8*1+4*1+2*1+1*1.
= 0+0+32+16+8+4+2+1.
= 32+16+15=63.