Study Chapter 2, specifically Section 2.8 and Figure 2.28, ofyour text on how to make a function call in ARM assembly. UseP2/userinput as a baseline so that your P3 can: 1) read a series ofintegers from the console, 2) call a new function (addIntegers,resided in a separate assembly file) from main (caller) by passingthose integers through a stack, and 3) obtain those integers fromthe stack by the callee who calculates and returns the sum of thoseintegers back to the caller to print the sum.
Submit _two_ .s files: p3_jdoe_main.s and p3_jdoe_add.s.
Study Chapter 2, specifically Section 2.8 and Figure 2.28, of your text on how to make a function call in ARM assembly.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am