Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question : Using instructions in Program 2 as a guide, write a program for both the ARM7TDMI and the Cortex-M4 that computes 6x^(2) - 9x
Question :
Using instructions in Program 2 as a guide, write a program for both the ARM7TDMI and the Cortex-M4 that computes 6x^(2) - 9x + 2 and leaves the result in register r2. You can assume x is in register r3.
AREA Prog2, coDE, READONLY ENTRY MOV MOV r6, #10 r7 , #1 r6 , #0 : load n into re ; if n=0, at least n!=1 loop CMP MULGTr7, r6, r7 SUBGT r6, r6 , #1 ; decrement n BGT loop ; do another mul if counter-0 stop B stop stop program ENDStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started