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

Thank you, I appreciate your time. Intro. to Microprocessor Testing: Test your

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:

  1. Use register R0 for N (i.e., MOV R0, #5 for N = 5).
  2. Use debug mode to debug and run your code (once your code is executed, the results should be in R4 and R5)
  3. 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.
  4. The template for your main.s is given on the next page.

code for several values of N and make sure that your code

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

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!