keyv540.inc
Original bytes preserved. This is a browser-readable view.
; keyv540.inc -- keyboard event codes and mode flags. ; Public constants for the keyv540 event interface. ; Include once before keyv540.s; emits no code. K540_EV_NONE: EQU &H00 K540_EV_CHAR: EQU &H01 K540_EV_MENU: EQU &H02 K540_EV_BRK: EQU &H03 K540_EV_CAPS: EQU &H04 K540_EV_SHIFT: EQU &H05 K540_MODE_CAPS: EQU &H40 K540_MODE_SHIFT: EQU &H80 ; Public calls: K540_INIT, K540_RESET, K540_MODE, K540_GET, K540_RAW. ; GET blocks through release; $17=event, $0=key, $13=mode. ; MODE reads RAM-backed KEYMD state into $13; do not cache it. ; CAPS (40h) persists; SHIFT (80h) is one-shot for CHAR. ; MENU and BRK return events; no automatic firmware jump. ; Borrows RAM1:09E4h; do not overlap host CRTKY. RESET on exit. ; Clobbers $0..$5,$15,$17,IX,IA/KY; returns UA=&H14. ; Requires valid SSP and card ROM access.