flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Keyboard Scan Code for 16 bit

Author
Thread Post new topic Reply to topic
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon 18 Jun 2005, 17:51
I recently cam across some code for 16 bits, i was reading the code for keyboard input and i noticed that it uses

cmp al, 10 ; if al==returnkey then
je .ret ; return
cmp al, 13 ; if al==returnkey then
je .ret ; return
cmp al, 8 ; if al==backspace then
je .back ; do backspace

i searched through all of my keyboard scancode documentation and have not found anywhere, where 8 = backspace and 13 = enter.. if anyone can post or redirect me to the correct scancode it would be much appreciated
Post 18 Jun 2005, 17:51
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 18 Jun 2005, 18:46
Those are the ascii codes (see http://www.lookuptables.com/ for a list of codes). ASCII 9 is backspace, ASCII 10 is line feed, and ASCII 13 is carriage return. You may need to use a table to translate the scancodes to ascii codes, but this is pretty easy to do.

For a list of scan codes, try http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html#ss1.4
Post 18 Jun 2005, 18:46
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.