I'm trying to create a calculator in MARIE Assembly Language. After some brain storming, I have addition, subtraction, and multiplication codes. I'm completely new to this language and would like to get some help on how to get started. Any help will be appreciated. Thanks
ORG 100 /Start
Input
Store A
Input
Store B
Load A /Put Number A into AC
Subt B /Substract from AC
Store Sum /Save sum
Output
Halt /End program
A, Dec 0 / values
B, Dec 0 / values
Sum, Dec 0 / Result, initially 0 overwritten by code
END
ORG 100 /Start
Input
Store A
Input
Store B
Load A /Put Number A into AC
ADD B /Add from AC
Store Sum /Save sum
Output
Halt /End program
A, Dec 0 / values
B, Dec 0 / values
Sum, Dec 0 / Result, initially 0 overwritten by code
END
Input /Input A value
Store A
Input /Input B value
Store B
Loop, Load B
Skipcond 800 If AC > 0, continue loop
Jump Endloop
Subt One
Store B
Load C
Add A
Store C
Jump Loop
Endloop, Load C
Output
Halt
C, DEC 0
A, DEC 0
B, DEC 0
One, DEC 1