Question: Given this starter code: LEA R 0 , PROMPT 1 ; Load the first number prompt and display to the user PUTS LD R 0

Given this starter code:
LEA R0, PROMPT1 ; Load the first number prompt and display to the user
PUTS
LD R0, NEWLINE
OUT
LEA R0, PROMPT2 ; Load the second number prompt and display to the user
PUTS
LD R0, NEWLINE
OUT
LEA R0, PROMPT3 ; Load the operation prompt and display to the user
PUTS
LD R0, NEWLINE
OUT
LEA R0, PROMPT4 ; Load the results prompt and display to the user
PUTS
LD R0, NEWLINE
OUT
HALT
PROMPT1.STRINGZ "Enter first number (0-99): "
PROMPT2.STRINGZ "Enter an operation (+,-,*): "
PROMPT3.STRINGZ "Enter second number (0-99): "
PROMPT4.STRINGZ "Result: "
NEWLINE .FILL x000A
NUM1.BLKW #1
NUM2.BLKW #1
OP .BLKW #1
RESULT .BLKW #1
GETNUM
RET
GETOP
RET
CALC
RET
DISPLAY
RET
.END
Can you help implement the desired functions provided in the image.
 Given this starter code: LEA R0, PROMPT1 ; Load the first

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!