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 v8 assembly program that implements multiplication. For multiplication, youll implementthe shift-and-add algorithm. You may not use any of the ARMarithmetic instructions, for any part of your program, no exceptions(e.g.. 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 post-indexing.You should implementthe shift-and-add functions using only logical/move 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 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!