Question: Create a small Assembly Language program on the Little Man Computer (LMC) to solve the following arithmetic equation: a = x + 2y + 3z
Create a small Assembly Language program on the Little Man Computer (LMC) to solve the following arithmetic equation: a = x + 2y + 3z
Use Peter Higginson's / LMC to test
You will need to ask the user to enter three values, one for x, one for y, and one for z, and then output the resulting number. Since the LMC doesnt support multiplication, you will need to convert the formula into one that only uses addition and subtraction.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
