Question: Code is for a msp430 microcontroller. 1 Write an assembly program with the following specifications a. In the main block, you should have two registers

Code is for a msp430 microcontroller.
1 Write an assembly program with the following specifications a. In the main block, you should have two registers R4 and R5. They should be checked in an infinite loop. If R4 is greater than R5, then the greater subroutine will be called If R4 is less than R5, then the less subroutine will be called. If R4 equals R5, then no operations will be done. In the greater subroutine, your code will fill the decimal numbers 1,2, 3, 4, 5 in hex- adecimal form to five successive memory locations. After this operation, the value in R4 will be decreased by one. c. In the less subroutine, your code will fill the decimal numbers 10,9,8,7,6 in hexadecimal form to five successive memory locations. After this operation, the value in R4 will be decreased by one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
