I am currently trying to write a simple operating system and I am having trouble getting and returning user input. Basically because it's OS independent I can't use int21. The code that I am using now is here:
inputChar:
mov ah, 00h
int 16h
mov al, ah
mov ah, 0Eh
int 10h
It gets the character, but I am unable to successfully display it. I believe that it's a problem converting from some form of hex to a character output. The output when I input a character is basically a bunch of random characters.
Does anybody have any ideas for how to fix this?