Yesterday we got a simple routine working that set a selected bit on a word using a few registers. Lets see if we can select that bit using the command line.
- output a message prompting the user for the bit to set
- read the input
- convert the ascii character to a number – as simple as subtracting 30H or 48 from the register?
- use that number as the bit number (register c), and run set bit
- go to 1
WELL… IT DOESN’T WORK. I can output the message, type a single character, then it locks up. not sure where it’s getting gobbed up – I’ve got a single character printing in the setbit routine and it doesn’t even get that far.
OK, that’s all for tonight.