📄 ps2.inc
字号:
;========================================================================
; FILE: ps2.inc
;
; This file contains ps2-specific delarations
;
;========================================================================
BAT_PASS: EQU 0AAh
BAT_FAIL: EQU 055h
;status bits for ps2 command processor
PS2_1MS: EQU 1
PS2_RESEND: EQU 2
PS2_XMIT: EQU 4
PS2_RESEND_REQUESTED: EQU 8
PS2_SCAN_KBD: EQU 10
PS2_ENABLED_INTERRUPTS: EQU 4 ; 1msec interrupt enabled
;PS2 response byte declarations
PS2_RSND: EQU 0FEh ;Resend response (request resend from host)
PS2_ACK: EQU 0FAh ;ACK response
PS2_ECHO: EQU 0EEh ;ECHO response
PS2_SCAN_INTERVAL: EQU 4 ;4msec between key scans
PS2_SEND_INTERVAL: equ 2 ;2msec between key code transmissions
;define key types for scan set 3. These are carefully chosen to match
;the enumerations in the ps2-host commands 0xf7 - 0xfd (set all keys, and
;set key type).
TYPEMATIC: EQU 0
MAKE_BREAK: EQU 1
MAKE: EQU 2
TYPEMATIC_MAKE_BREAK: EQU 3
SCAN_SET_1: EQU 1
SCAN_SET_2: EQU 2
SCAN_SET_3: EQU 3
KEYBOARD_ID_BIT: equ 01h ; bit 0 denotes keyboard type in option byte
;------------------------------------
; Line Status
;------------------------------------
; CLK DATA Status
;------------------------------------
; 0 0 Inhibit
; 0 1 Inhibit
; 1 0 Require to send
; 1 1 Idle
;------------------------------------
PS2LineMask: EQU PS2_CLOCK_BIT+PS2_DATA_BIT
PS2InhibitMask: EQU PS2_CLOCK_BIT
PS2Inhibit: EQU 00h
PS2RequestToSend: EQU PS2_CLOCK_BIT
PS2Idle: EQU PS2_CLOCK_BIT+PS2_DATA_BIT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -