Question

1) The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. 2) The value...

1) The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________.

2) The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’.

If the .data segment contains declarations.

A BYTE 2 DUP (‘a’), ‘+’

B BYTE 3 DUP (‘b’), 0

C BYTE 4 DUP (‘c’), ‘–’

D BYTE 5 DUP (‘d’), 0

then the instruction input A, D, 6 will display a Windows dialog box with title?

3) If eax = 302B59A1H, and ebx = 700CD37DH, then the instruction add ax, bx will leave what value in the eax register?

Homework Answers

Answer #1

ANSWER :

1)

8 bit hex value to decimal value

First split all the bits as shown

0 B 4

Replace each bit with its equivalent 4 bit binay digits.

0 = 0000

B = 1011

4 = 0100

Now, combine all the binary digits obtained above

0B4 = 0000 1011 0100

Represent the power of 2's value, since we are working with 8 bit I am eleminating the 4 bits of MSB

128 64 32 16 8 4 2 1

| | | | | | | |

1 0 1 1 0 1 0 0

Therefore, add all the 1 with its 2's power value

(0B4) hex = (128 + 32 + 16+ 4)

= 180 decimal

Thus the decimal of 8 bit (0B4)H = (180)D


2)

In this we are considering ASCII value and its equivalent hexadeciaml value.

So,

H - B = 72 - 66

because ASCII (H) = 72 Decimal

and ASCII (B) = 66 Decimal

Therefore, 72 - 66 = 6

L - C = 76 - 67

because ASCII (L) = 4C = 76 Decimal

and ASCII (C) = 67 Decimal

Therefore, 76 - 67 = 9

Thus, we can say that, 'H' - 'B' is less than 'L' - 'C'

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT