Question: 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 END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
