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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started