Question: Use the multiply subroutine you wrote for the Assembly Language quiz and write an assembly language program to implement a new function called MultiAdd. The
Use the multiply subroutine you wrote for the Assembly Language quiz and write an assembly
language program to implement a new function called MultiAdd. The MultiAdd function takes
three parameters, say and and returns the result The MultiAdd function must
use the Multiply function to get the product term in the expression. Use as your test
data you should get
This was my assembly langauage program : ORG
Input
Store A
Input
Store B
Input
Store C
Input
Store D
Load A
Store X
Load B
Store Y
Call Multiply
Load Result
Store ABResult
Load C
Store X
Load D
Store Y
Call Multiply
Load Result
Store CDResult
Load ABResult
Add CDResult
Output
Halt
Multiply,
Load Zero
Store Result
Load X
Store Temp
Loop,
Load Temp
Subtract One
Store Temp
Skipcond
JumpZ EndLoop
Load Y
Add Result
Store Result
Jump Loop
EndLoop,
Load Result
JumpI Multiply
A
B
C
D
X
Y
Result,
Temp,
ABResult,
CDResult,
Zero,
One,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
