Question: I am trying to write an assembly arm-7 program that would do the equivalent of this. I can only use basic operators of add sub

 I am trying to write an assembly arm-7 program that would
I am trying to write an assembly arm-7 program that would do the equivalent of this.
I can only use basic operators of add sub mul and divide
I can use branching with bl and bx and can use str to store values in ram. can also use DCD and ADR

Write a complete program to implement the following C code. Follow APCS conventions for passing arguments and returning values. Use data directive DCD for read only variables. Assume RAM begins at Ox40000000 Include all directives required to make a correct and complete program in Keil. maino { int32 min = 4; int32 max = 255; int32 val; val mix (min, max) } int32 mix (int32 a, int32 b) { return ( a + 3*b) }

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!