Study Chapter 2, specifically Section 2.8 and Figure 2.28, of your text on how to make a function call in ARM assembly.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Study Chapter 2, specifically Section 2.8 and Figure 2.28, of your text on how to make a function call in ARM assembly.

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply