;======================================================================
; Key Dictionary Macro Definitions (28_Feb_84)
;=============================================
;

; Generate a Function Key Dictionary Entry (28_Feb_84)
;-----------------------------------------------------
;	1) This macro generates an entry in the function key dictionary.
;	2) Each entry in the dictionary has the following form
;		1 byte	Length of the name string
;		3 bytes	Key definitions (normal, shifted and contol)
;		n bytes	Name of function key
;
DfKey	macro	Name, K1, K2, K3
	local	L1, L2

	db	K1		;Key Output for UnShifted
	db	K2		; "    "     "  Shifted
	db	K3		; "    "     "  Control
	db	l2 - l1		;length of Name string
l1: 	db	'&Name'		;Name of function key
l2:
	endm


; Terminate the Key Dictionary (28_Feb_84)
;-----------------------------------------
;
DfEnd	macro

	ds	4,0		;4 bytes of zero to end the table
	endm

	page
;----------------------------------------------------------------------
; Key Dictionary (7_Aug_84)
;--------------------------
;	1) This Dictionary contains all of the Function Key Codes
;
Key_Dictionary:
	DfKey	F1, 	40h, 60h, 0h
	DfKey	F2, 	41h, 61h, 1h
	DfKey	F3,	42h, 62h, 2h
	DfKey	F4,	43h, 63h, 3h
	DfKey	F5, 	44h, 64h, 4h
	DfKey	F6,	45h, 65h, 5h
	DfKey	F7,	46h, 66h, 6h
	DfKey	F8,	47h, 67h, 7h
	DfKey	F9,	48h, 68h, 8h
	DfKey	F10,	50h, 52h, 53h

	DfKey	FA,	1Ch, 7Ch, 5Ch
	DfKey	FB,	1Dh, 7Dh, 5Dh
	DfKey	FC,	1Eh, 7Eh, 5Eh
	DfKey	FD,	1Fh, 7Fh, 5Fh

	DfKey	UP,	4Ah, 6Ah, 0Ah
	DfKey	DOWN,	4Bh, 6Bh, 0Bh
	DfKey	LEFT,	4Ch, 6Ch, 0Ch
	DfKey	RIGHT,	4Dh, 6Dh, 0Dh

	DfKey	HOME,	4Eh, 6Eh, 0Eh
	DfKey	HELP, 	4Fh, 6Fh, 0Fh
	DfKey	ERASE,	49h, 69h, 09h
	DfKey	SETUP,	 0,   0,   0

	DfKey	TAB,	Null, 1Ah, 1Bh

	DfKey	0,	30h,  20h, 10h
	DfKey	1,	31h,  21h, 11h 
	DfKey	2,	32h,  22h, 12h
	DfKey	3,	33h,  23h, 13h
	DfKey	4,	34h,  24h, 14h
	DfKey	5,	35h,  25h, 15h
	DfKey	6,	36h,  26h, 16h
	DfKey	7,	37h,  27h, 17h
	DfKey	8,	38h,  28h, 18h
	DfKey	9,	39h,  29h, 19h

	DfKey	<.>,	2Ah,  2Bh, 2Ch
	DfKey	ENTER,	2Dh,  2Eh, 2Fh
	DfKey	<->,	3Ah,  3Bh, 3Ch
	DfKey	<,>,	3Dh,  3Eh, 3Fh

	DfEnd				;End of the table
	page

;----------------------------------------------------------------------
; Non_Printing Key Dictionary (26_Apr_84)
;----------------------------------------
;	1) This Dictionary contains all of the Special Key names for non-
;	   printing keys. These names only can appear on the right side of
;	   the definition.
;
Non_Dictionary:
	DfKey	_TAB,	9,    0, 0	;Tab
	DfKey	_ESC,	1Bh,  0, 0	;Escape
	DfKey	_DEL,	7Fh,  0, 0	;Delete
	DfKey	_RTN,	0Dh,  0, 0	;Carriage Return
	DfKey	_SLW,	Slow, 0, 0	;Slow - Return Char In Status False
	DfKey	_FST,	Fast, 0, 0	;Fast - Return Char In Status True

	DfEnd				;End of the table

