;========================================================== ; Control key bindings for NTS 1.0 ; - All command keys must be control chars ; - The length of the list must not be changed. ; - The order of the list must not be changed. ; Normal commands are control chars ^A .. ^^ and 1fh for DEL ; There are four meta-keys which access commands coded to them. ; - Meta-key #1 ^n + 80h + 0 ; - Meta-key #2 ^n + 80h + 20h ; - Meta-key #3 ^n + 80h + 40h ; - Meta-key #4 ^n + 80h + 60h ; Disabled keys use '-' ; Shift factors for meta-keys k0 equ 0 ; Control key k1 equ 80h ; Meta 1 k2 equ 80h + 20h ; Meta 2 k3 equ 80h + 40h ; Meta 3 k4 equ 80h + 60h ; Meta 4 ; Generate control key from char and shift factor key macro x,m db x-'@'+m endm org 3A0h ; Meta keys ; key 'K',k0 ; Meta #1 key 'Q',k0 ; Meta #2 key 'O',k0 ; Meta #3 db '-' ; Meta #4 ; Editing ; key 'H',k0 ; Backspace key 'S',k0 ; Char left key 'D',k0 ; Char right key 'E',k0 ; Line up key 'X',k0 ; Line down key 'F',k0 ; Word right key 'A',k0 ; Word left key 'J',k0 ; Line end/ line start key 'S',k2 ; Line start key 'D',k2 ; Line end key 'R',k0 ; Up screen key 'C',k0 ; Down screen key 'R',k2 ; First screen key 'C',k2 ; Last screen key 'G',k0 ; Delete char db 1fh ; Delete left key 'T',k0 ; Delete word right key 'Y',k0 ; Delete line key 'Y',k2 ; Delete to end of line key 'M',k0 ; Carriage return key 'N',k0 ; Insert carriage return key 'I',k0 ; TAB key 'V',k0 ; Toggle insert/overwrite key 'Z',k2 ; Zap to end key 'X',k1 ; Save & exit key 'Q',k1 ; Quit key 'U',k0 ; Undo changes to line key 'B',k0 ; Reformat key 'R',k3 ; Set right margin end