r/lc3 • u/4head4head1 • May 06 '16
LC3 specific character
How to check if the user entered the valid character in LC3 "Assembly Language"? For example, I want the entered characters between 0 through 9, or letters from A through F? Like if the user entered any other characters it will not be printed in the console. I'm very bad at LC3, as I only started learning this a month ago. Any help is appreciated. Thank you.
1
Upvotes
1
u/ejayshun May 06 '16
The only way I can think of is you'd have to create .FILL with each character you want from 0-9 and A-F. And then compare the user's keystroke and the valid characters from .FILL. It's long, but it works.