Question: ARM Assembly - You are given some code in PA3-2.s that implements a simple vending machine type behavior. The vending machine has three choices, peanuts
ARM Assembly - You are given some code in PA3-2.s that implements a simple vending machine type behavior. The vending machine has three choices, peanuts (75 cents), chocolate ($1.25), and pretzels (90 cents), and also allows the user to select a quantity of the item they want. The code takes their choice, computes the price for that item, and multiplies it by the quantity leaving the result in R2. The program currently uses branches to perform the computation. You must remove all the branches using conditional execution. The behavior of the code must be the same as the code with the branches. See the intro video for more details. Be sure to try
different values for choice and quantity to check your code. Edit: There is nothing more I can add. This is ARM assemby and I've provided everything that has been provided to me.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
