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 R PROMPT ; Load the first number prompt and display to the user
PUTS
LD R NEWLINE
OUT
LEA R PROMPT ; Load the second number prompt and display to the user
PUTS
LD R NEWLINE
OUT
LEA R PROMPT ; Load the operation prompt and display to the user
PUTS
LD R NEWLINE
OUT
LEA R PROMPT ; Load the results prompt and display to the user
PUTS
LD R NEWLINE
OUT
HALT
PROMPTSTRINGZ "Enter first number :
PROMPTSTRINGZ "Enter an operation :
PROMPTSTRINGZ "Enter second number :
PROMPTSTRINGZ "Result:
NEWLINE FILL xA
NUMBLKW #
NUMBLKW #
OP BLKW #
RESULT BLKW #
GETNUM
RET
GETOP
RET
CALC
RET
DISPLAY
RET
END
Can you help implement the desired functions provided in the image.
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
