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...

  • LSL R3, R3, R12 Memory Address Orig. Data Updated Data Register Orig. Data Updated Data 0x84F0...

    LSL R3, R3, R12 Memory Address Orig. Data Updated Data Register Orig. Data Updated Data 0x84F0 0x82 R0 0xDC002B45 0x84F1 0x32 R1 0x00008500 0x84F2 0xBC R2 0xAB03873C 0x84F3 0xA4 R3 0x2B78DFE0 0x84F4 0xF4 R4 0x000084F0 0x84F5 0x6A R5 0x00100000 0x84F6 0x9D R6 0x041B0C0D 0x84F7 0xC2 R7 0x00100000 0x84F8 0x42 R8 0x00000000 0x84F9 0x67 R9 0x00842AB0 0x84FA 0x8D R10 0x0ABD9830 0x84FB 0xA1 R11 0x0000000A 0x84FC 0xF2 R12 0x00000002 0x84FD 0xB8 R13 0X00008500 0x84FE 0x5E R14 0x003762DD 0x84FF 0xEE R15 0x00100000 0x8500...

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