X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=ld45_start_nothing;a=blobdiff_plain;f=src%2Fkbregs.inc;fp=src%2Fkbregs.inc;h=8b58ced23ec8399f2f811143843f80230dc0d6be;hp=0000000000000000000000000000000000000000;hb=0216fd8105a2b94aab6eb1c013c97882cacaf0c1;hpb=72eec372bc82e28afee824b440fc76aad177d66b diff --git a/src/kbregs.inc b/src/kbregs.inc new file mode 100644 index 0000000..8b58ced --- /dev/null +++ b/src/kbregs.inc @@ -0,0 +1,26 @@ +; vi:filetype=nasm ts=8 sts=8 sw=8: + +KB_IRQ equ 1 +KB_DATA_PORT equ 60h +KB_CMD_PORT equ 64h +KB_STATUS_PORT equ 64h + +KB_ACK equ 00fah +KB_NACK equ 00feh +KB_TEST_PASS equ 0055h +KB_TEST_FAIL equ 00fch + +KB_STAT_OUTBUF_FULL equ 01h +KB_STAT_INBUF_FULL equ 02h +KB_STAT_SYSFLAG equ 04h +KB_STAT_CMD equ 08h +KB_STAT_ACTIVE equ 10h +KB_STAT_AUX equ 20h +KB_STAT_TIMEOUT equ 40h +KB_STAT_PAR_ERROR equ 80h + +KB_CMD_GET_CMDBYTE equ 20h +KB_CMD_SET_CMDBYTE equ 60h + +KB_CCB_KB_INTREN equ 01h +KB_CCB_KB_XLAT equ 40h