Question: Thank you, I appreciate your time. Intro. to Microprocessor Testing: Test your code for several values of N and make sure that your code gives
Thank you, I appreciate your time.
Intro. to Microprocessor

Testing: Test your code for several values of N and make sure that your code gives correct answers.
Try some small as well as large numbers for N (100, 250 ) up to 255.
Every time that you change the code (i.e. changing value of R0 (for N)), you must recompile your code (get out from the debug mode (if you are using it) and then recompile).
Reminder: a negative number will be represented in 2s complement format and every register has 32 bits. We may use the window calculator to convert the results from binary/Hex to Decimal.
Note:
- Use register R0 for N (i.e., MOV R0, #5 for N = 5).
- Use debug mode to debug and run your code (once your code is executed, the results should be in R4 and R5)
- During the lab check-off,
- the value of N will be changed to check your code.
- You will also have to show me that you know how to use the debug feature of Keil uVision5.
- The template for your main.s is given on the next page.

AREA FLASH, CODE, READONLY
ENTRY
EXPORT __main
EXPORT SystemInit
; System Init routine
SystemInit
; __main routine starts here
__main
;;add your code here
end
B end
END; End of File
For a given number N, write an ARM Assembly program to Find R4 = N + 8N - 35 and the result should be stored in register R4. Find R5 = &R=13 *k and the answer should be kept in R5. You must write your code using an idea of loop. Use one register to store N. One program is for both results. ******** **** J ; Code for, given a value of N in RO, ; finding value (stored in R4) of a given series and ; finding value (stored in R5) of =13* k ; written by your name) ; written on (put in the date) ***** *** For a given number N, write an ARM Assembly program to Find R4 = N + 8N - 35 and the result should be stored in register R4. Find R5 = &R=13 *k and the answer should be kept in R5. You must write your code using an idea of loop. Use one register to store N. One program is for both results. ******** **** J ; Code for, given a value of N in RO, ; finding value (stored in R4) of a given series and ; finding value (stored in R5) of =13* k ; written by your name) ; written on (put in the date) ***** ***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
