Question

Compute the correct CPU computations and actions.

Write the final updated values for each memory, register and flags after the given instruction executes in the space provided. There are multiple parts of this problem.

Endianness: Check for endianness in case of loads and stores, in each part of the question. If the question does not specify the endianness, you can assume little-endian.

MOVT R3, #OxBD34 Orig. Updated Data Updated Data R6 Memory Address Ox84F0 0x84F1 0x8452 Ox84F3 Ox8454 Ox84F5 Ox84F6 0x8457 Ox

0 0
Add a comment Improve this question Transcribed image text
Answer #1

A)

LDRSB R10,[R4,#0x18]! uses pre-indexed immediate addressing mode.

1. This instruction evaluate R4+0x18 first and update R4 since it is pre-indexed instruction. It increments the index prior to the use.

R4=R4+0x18=0x000084F0+0x18

=0x00008508

2. Read the lower byte of data from the memory address 0x00008508 ie C3

3. Load into register R10 with sign extended form. ie MSB(31-8) will be filled with 1. ie 0xFFFFFFC3

(C3 is 1100 0011 with sign bit 1 as highlighted and this will be extended till the 31st position ie

1111 1111 1111 1111 1111 1111 1110 0011=FFFFFFC3)

4. Flag N=1 since the sign of the number is 1

Register R4 and R10 and Flag N are modifiied here and all other memory and register contents remains the same.

Add a comment
Know the answer?
Add Answer to:
Compute the correct CPU computations and actions. Write the final updated values for each memory, register...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • ARM assembly language Write the final updated values for each memory and register after the given...

    ARM assembly language Write the final updated values for each memory and register after the given instruction executes in the space provided.There are multiple parts of this problem. Note Only write the change values if the values didn't change. Leave the updated cell blank. please explain (as simple as possible ) whats going on after the given command is executed . Q.5.4 Bring to class LSL R6, R6, #3 Updated Data Updated Data Memory Address Ox84F0 Ox 841 Ox84F2 Ox843...

  • using ARM64 assembly language. this was all the information I was given, if unable to answer...

    using ARM64 assembly language. this was all the information I was given, if unable to answer please refund question, please dont ask for additional information Compute the correct CPU computations and actions. Write the final updated values for each memory and register after the given instruction executes in the space provided. There are multiple parts of this problem. Check for endianness in case of loads and stores in each part of the question. (Note: Only write the changed values, if...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT