Write ARM assembly code to implement the following C statements, using 32-bit integer variables.You must:1.Use branch and link instructionsto call the subroutines.2.Return from the subroutinesby using the link register.3.Put the argument to the abs subroutinein register r8 and put the return value from abs in register r8.4.Put the return values from a_minus_b and b_minus_a in r0 and r1, respectively.5.Initialize a and bwith DCD directives.6.In addition to returning values in the registersspecified in 4., a_minus_b and b_minus_a must update the memory locations associated witha and b.

Solved
Show answers

Ask an AI advisor a question