227k views
0 votes
Given the assembly instruction: bne $s0, $s1, DONE The address of the instruction is 500bytes. If the offset field contains the following value: 11111111111101002, what is the target address? Explain your answer.

User Zkohi
by
8.6k points

1 Answer

5 votes

Answer:

The target audience is 492

Step-by-step explanation:

From the given formula

target audience = pc address + offset field value

And pc address = 500 + 04 = 504

The offset field value when converted to decimal, gives the value of -12

i.e 11111111111101002 = -12 in decimal

Hence the target audience = 504 + (-12)

= 492

User Dtrv
by
7.8k points