Question

4. Given the following disassembly window of the Mainloop code listing please perform the following actions (30 pts) Disembly
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer Given that a) General format for addressing models in MSP430 As sem blue Addressing mode As/Ad 0010 0110 Oil1 0111 101The instruction means add.w#ou0055 ,RO moves the ] Ox ooss into register R6. so destination register Dareg is Ro and sourceFor instruction Pre R6)- It is a single operand Hera decimal value: 1006 Binary value :0001 0000 0000 0110 Explanation:- Gen28 Disassembly X Memory Browser Mainloop: cena: 5036 0055 ADD.W #exe055, R6 frov. R6, R7 ceee: 4607 MOV. R6,BZ rrc R6 c010: 1lets jos bit zs complement of G:- 10 bits of 6 = 00 0000 0110 is complement of 6 =11llll 1001 Add 1 = lo bits 2s complimefor instruction jump Main loop:- It is jump instruction Pc effect I opcode condition / co-bit twos complement 001 11 illl

Add a comment
Know the answer?
Add Answer to:
4. Given the following disassembly window of the Mainloop code listing please perform the following actions...
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
  • Implement the following statements using MS430 assembly instructions. You may use more than one, ...

    Implement the following statements using MS430 assembly instructions. You may use more than one, but you should minimize the number of instructions required. You can use both native and emulated instructions. Use hex notation for all numbers 1. (a) Move the word located in register R14 to R15 (b) Increment the word in R6 by 2. (c) Perform a bitwise ANDing of the word located at address 0x0240 with the datum in R15, placing the results in R15. (d) Rotate...

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