debrisca
asked on
Echoing characters using font bitmaps in nasm
Does anybody know how to read characters from a keyboard and echoes them on the screen using nasm assembler? The thing is I have a set of font bitmaps which I have to use to echo whatever character the user enters on the screen but I have no clue how to do that.
Please somebody help me out!And how can I get the ascii value of the character from the scan code of the key?
Thank you
Please somebody help me out!And how can I get the ascii value of the character from the scan code of the key?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Convert scan codes into ascii with a lookup table. Create a table such that lookup_table[scan_code] = ascii value.
If you are echoing text to the screen in a text mode, there are DOS interrupts which will put a character to the screen. If you are in GFX mode, then you will need to to a blt (block transfer) to copy the bitmap of the appropriate character to the screen. Again, you can use a lookup table to go from an ascii character to the offset in your font bitmap where the character begins.
Does this help at all? Do you need any more details?