Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone help me fix my code? ORG 1 0 0 Input / Read a Skipcond 8 0 0 Jump Error Output Store A Input
can someone help me fix my code? ORG
Input Read a
Skipcond
Jump Error
Output
Store A
Input Read b
Skipcond
Jump Error
Output
Store B
Input Read c
Skipcond
Jump Error
Output
Store C
Input Read d
Skipcond
Jump Error
Output
Store D
Input Read e
Skipcond
Jump Error
Output
Store E
Load A
Store Operand
Load B
Store Operand
Load AddrMultiplyReturn Prepare for the return address from Multiply
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn HEX Placeholder for the return address
Store TempResult
Load C
Store Operand
Load D
Store Operand
Load AddrMultiplyReturn
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn HEX
Store TempResult
Load TempResult
Store Operand
Load TempResult
Store Operand
Load AddrMultiplyReturn
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn HEX
Store TempResult
Load TempResult
Store Operand
Load E
Store Operand
Load AddrMultiplyReturn
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn HEX
Output Display the final result
Halt
Multiply, Clear
Store Result
Load Operand
Skipcond
Jump Return
Load Operand
Store Counter
MultiplyLoop, Load Result
Add Operand
Store Result
Load Counter
Subt One
Store Counter
Skipcond
Jump MultiplyLoop
Return, JUMP I MultiplyReturn
Error, Load Zero
Output
Halt
A DEC
B DEC
C DEC
D DEC
E DEC
Operand DEC
Operand DEC
Counter, DEC
Result, DEC
TempResult DEC
TempResult DEC
TempResult DEC
One, DEC
Zero, DEC
MultiplyReturn, DEC
this is the project on working on: Using the MARIE computer assembly language, write a program that computes the following expression:
z a bc d e The computer will read in the input values a b c d and e from the keyboard, and the final result z has to be displayed. In addition, every time an input value is read in it must be validated by checking that the input is a positive number. If it is positive display the number on the screen; otherwise display zero and end the program. Each time a multiplication of two numbers is needed, it has to be done using a multiplication subroutine. Remember that the MARIE instruction set does not have an instruction to execute multiplication, you must create a subroutine function that multiplies two numbers and call it each time you need it The program must be tested in the MARIE simulator. this is the error i get. E A Multiply CLEAR
F STORE Result
LOAD Operand
SKIPCOND
D JUMP Return
LOAD Operand
STORE Counter
MultiplyLoop LOAD Result
ADD Operand
STORE Result
LOAD Counter
D SUBT One
A STORE Counter
B SKIPCOND
C JUMP MultiplyLoop
D Return JUMP I
Operand undefined.
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