-
Notifications
You must be signed in to change notification settings - Fork 3
Keyboard Functions
Replace the current keyboard related interrupt with my own
- IN:
Nothing
- OUT:
CF
= Carry flag set on error
Read a byte from the keyboard controller
- IN:
Nothing
- OUT:
AL
= Byte from read
Send a byte to the keyboard controller
- IN:
AL
= Byte to write - OUT:
Nothing
Send a command to the keyboard controller
- IN:
BL
= Command byte - OUT:
Nothing
Preform a self test of the keyboard controller
- IN:
Nothing
- OUT:
CF
= Carry flag set on error
Set the keyboard leds
- IN:
Nothing
- OUT:
Nothing
Wait untill a key is pressed
- IN:
Nothing
- OUT:
AH, AL
= Scan code, Ascii code
Get input from the keyboard and fill into the buffer
- IN:
DS:SI
= Location of input buffer - OUT:
DS:SI
= Buffer updated with keys pressed
Custom interrupt service/ handler for the keyboard controller
- IN:
Nothing
- OUT:
Nothing
Send a command to the keyboard encoder
- IN:
BL
= Command byte - OUT:
Nothing
Convert a scan code to ascii and set status flags
- IN:
AL
= Scan code - OUT:
AH, AL
= Scan code, Ascii code
Flush the most recent key in the BIOS keyboard buffer
- IN:
Nothing
- OUT:
Nothing
Check the BIOS keyboard buffer for a key
- IN:
Nothing
- OUT:
AX
= Zero when empty
Get a character and scan code from the BIOS keyboard buffer
- IN:
Nothing
- OUT:
AH, AL
= Scan code, Ascii code
Shove a character and scan code into the BIOS keyboard buffer
- IN:
CH, CL
= Scan code, Ascii code - OUT:
AX
= 0 Buffer full, 1 successfully stored
Wait until a new character and scan code are in the BIOS keyboard buffer
- IN:
Nothing
- OUT:
AH, AL
= Scan code, Ascii code
Get input from the BIOS keyboard and fill into the buffer
- IN:
DS:SI
= Location of input buffer - OUT:
DS:SI
= Buffer updated with keys pressed