Question: 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 100
Input / Read a
Skipcond 800
Jump Error
Output
Store A
Input / Read b
Skipcond 800
Jump Error
Output
Store B
Input / Read c
Skipcond 800
Jump Error
Output
Store C
Input / Read d
Skipcond 800
Jump Error
Output
Store D
Input / Read e
Skipcond 800
Jump Error
Output
Store E
Load A
Store Operand1
Load B
Store Operand2
Load AddrMultiplyReturn1/ Prepare for the return address from Multiply
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn1, HEX 0/ Placeholder for the return address
Store TempResult1
Load C
Store Operand1
Load D
Store Operand2
Load AddrMultiplyReturn2
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn2, HEX 0
Store TempResult2
Load TempResult1
Store Operand1
Load TempResult2
Store Operand2
Load AddrMultiplyReturn3
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn3, HEX 0
Store TempResult3
Load TempResult3
Store Operand1
Load E
Store Operand2
Load AddrMultiplyReturn4
Store MultiplyReturn
JUMP Multiply
AddrMultiplyReturn4, HEX 0
Output / Display the final result
Halt
Multiply, Clear
Store Result
Load Operand1
Skipcond 400
Jump Return
Load Operand2
Store Counter
MultiplyLoop, Load Result
Add Operand1
Store Result
Load Counter
Subt One
Store Counter
Skipcond 400
Jump MultiplyLoop
Return, JUMP I MultiplyReturn
Error, Load Zero
Output
Halt
A, DEC 0
B, DEC 0
C, DEC 0
D, DEC 0
E, DEC 0
Operand1, DEC 0
Operand2, DEC 0
Counter, DEC 0
Result, DEC 0
TempResult1, DEC 0
TempResult2, DEC 0
TempResult3, DEC 0
One, DEC 1
Zero, DEC 0
MultiplyReturn, DEC 0
this is the project on working on: Using the MARIE computer assembly language, write a program that computes the following expression:
z (a * b)*(c * 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. 13E A000| Multiply CLEAR
13F 2159| STORE Result
1401156| LOAD Operand1
1418400| SKIPCOND 400
142914D | JUMP Return
1431157| LOAD Operand2
1442158| STORE Counter
1451159| MultiplyLoop LOAD Result
1463156| ADD Operand1
1472159| STORE Result
1481158| LOAD Counter
149415D | SUBT One
14A 2158| STORE Counter
14B 8400| SKIPCOND 400
14C 9145| JUMP MultiplyLoop
14D 9???| Return JUMP I
**** Operand undefined.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!