I have a code that I've been testing in Pep/8 Assembly, that takes an input of a character ><= and does comparisons. Once the comparisons are complete and the appropriate mathematical operation is done, I want to have the program prompt the user for another input.
I don't know why but my program is steamrolling over the input and because if it finds a 'invalid' input it just heads straight to the condition to exit the program. I am assuming it is a carriage return issue at this point. Is there any way to clear the contents of the 'guess' before prompting again?
CHARI guess,d ;character input
LDBYTEA guess,d ; load character into reg a
CPA '>',i
BRNE L
Any assistance would be helpful, thank you.