Question: Need help with a lab program: Write an assembly program that add the content of Register R4,R5,R6 to register R7 then subtract the content of

Need help with a lab program:

Write an assembly program that add the content of Register R4,R5,R6 to register R7 then subtract the content of R10 from R7. Once calculation is done all values of registers must be preserve in memory starting at memory address 0x0200. R4 = 4, R5 = 3, R6 = 10, R10 = 15. The overall program structure should be as follows: Setup ...... ;clear all registers ...... ;Setup Register Values ...... Addition ...... ;Add the content of registers ...... ;R4,R5,R6 into R7 ...... Subtraction ...... ;subtract content of R10 from R7 ...... Store ...... ;Store the content of all Register used ...... ;into memory including results in the ...... ;Order R4, R5, R6, R10, R7. Mainloop jmp Mainloop ;Infinite Loop [5] 1.a) complete the above assembly program. 1.1) Main Program [2]Addition, [2]Subtraction, [1]Store [5] 1.b) Answer all the Following Questions [0.5] Record the values of Register prior to program execution oR4______, R5______, R6______, R10______, R7____________SR______, NZVC____ [0.5] Record the values of memory location prior to program execution starting at location 0x0200 o_________________________________________________________________________ ________________________________________________________________________ [1] Record the values of Register after to program execution oR4______, R5______, R6______, R10______, R7____________SR______, NZVC____ [1] Record the values of memory location after to program execution starting at location 0x0200 o_________________________________________________________________________ ________________________________________________________________________ [1] Why do we need an infinite loop at the end of the program? o_________________________________________________________________________ ________________________________________________________________________ [1] Is the MSP430 Launchpad a real time Microprocessor? o _________________________________________________________________________ ________________________________________________________________________

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!