Question: In this assignment you will write an ARM v 8 assembly program that implements multiplication. For multiplication, youll implement the shift - and - add
In this assignment you will write an ARM v assembly program that implements multiplication. For multiplication, youll implementthe shiftandadd algorithm. You may not use any of the ARMarithmetic instructions, for any part of your program, no exceptionseg add, sub, mul, div, neg, or anyvariants For manipulating the stack pointer, you may use the stp and ldp instructions, as well as the ldr and str instructions with pre and postindexing.You should implementthe shiftandadd functions using only logicalmove operations and eor, orr, cmp mov, lsl asr, lsr mvn etc. memory operations stp ldp str ldr stm ldm etc., automatic stack pointer updating allowed and branch instructions conditional unconditional, and function calls Your program mustalso be modular.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
