DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦753ea4ab2⟧ TextFile

    Length: 1126 (0x466)
    Types: TextFile
    Notes: UNIX file
    Names: »kbd.h«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »hr/src/driver/kbd.h« 

TextFile

/*
 * Machine dependent keyboard definitions.
 */

#define	SPC	0376			/* Special encoding */
#define XXX	0377			/* Non-character */
#define	KBDATA	0x60			/* Keyboard data */
#define	KBCTRL	0x61			/* Keyboard control */
#define	KBFLAG	0x80			/* Keyboard reset flag */

#define	KEYUP	(0x80)			/* Key up change */
#define	KEYSC	(0x7F)			/* Key scan code mask */
#define	LSHIFT	(0x2A)			/* Left shift key */
#define LSHIFTA (0x2B)			/* Alternate left-shift key */
#define	RSHIFT	(0x36)			/* Right shift key */
#define	CTRL	(0x1D)			/* Control key */
#define	ALT	(0x38)			/* Alt key */
#define	CAPLOCK	(0x3A)			/* Caps lock key */
#define	DELETE	(0x53)			/* Del, as in CTRL-ALT-DEL */
#define BACKSP	(0x0E)			/* Back space */
#define SCRLOCK	(0x46)			/* Scroll lock */

/* Shift flags */
#define	SRS	(0x01)			/* Right shift key on */
#define	SLS	(0x02)			/* Left shift key on */
#define CTS	(0x04)			/* Ctrl key on */
#define ALS	(0x08)			/* Alt key on */
#define CPLS	(0x10)			/* Caps lock on */
#define NMLS	(0x20)			/* Num lock on */
#define AKPS	(0x40)			/* Alternate keypad shift */
#define SHFT	(0x80)			/* Shift key flag */