Write an assembly program using MARIE's assembly Instruction set that prompts
the user to enter a non-negative integer that is less than 10. The program should
include a subroutine that keeps prompting until a valid value is obtained. When a
valid number is entered, it will be displayed. (Hint: Use JNS & JUMPI instructions
to implement the subroutine)
N.B: You should include the MARIE code in your Answer, with an
explanation of each instruction in your code beside it (not a screenshot!)
Comments
Leave a comment