-. [3.2.3] , ScrollLock, . -- , BIOS [3.1.9]. , - Ctrl, Ctrl + H, I, M [, ASCII, , <BackSpa- ce>, <Tab>, <Enter> <Escape>. [3.1.8] , -, Ctrl (- AH, - 16H). , . , . 2 0040:0017 , Ctrl - . , , , . PCjr 63 , 83 IBM PC XT 84 AT. -- (- [3.2.5]): PCjr PC/XT/AT Alt + Fn + 0-9 0-9 (- - Alt + / \ Alt + ' ` Alt + [ | Alt + ] ~ Alt + . * (-, PrtSc Shift + Del . (-, . -) PCjr - -: Fn + Shift + Esc Ctrl + Alt + CapsLock Ctrl + Alt + Ins Ctrl + Alt + CursorLeft Ctrl + Alt + CursorRight 3.2.3 -: NumLock, CapsLock, Ins ScrollLock. Ins, -- , . , , BIOS 0040:0017 0040:0018. . - [3.1.7]. - - . - - - . , . , <ScrollLock> - , + . , , <ScrollLock> . , <Shift> <NumLock>. <Ins> 0;82, . <Ins> . <Ins>, . <Ins>, <Scroll- Lock>, ( <Num- Lock> <CapsLock>). , . IBM , <ScrollLock> - , , . , - - . , - , -1 - , 0 - . , F10 - Clock: 100 ''' 110 CLOCK = -1 ' 120 IF X<=100 THEN NOT CLOCK ' 3.2.4 . IBM PC XT , <Ins> <Del>, + -. AT "System Request" (Sys Rec), PCjr 4 ( <Shift> <Fn>, [3.2.2] [3.2.5]). <Num- Lock> . <Ins> <Del> <NumLock> - , .. . + - <Num- Lock>. , - .. ASCII 48 57 0 9. + -. - - , AH 16H, 21H. - , <Shift> , - <NumLock>. <CapsLock> . "5" . <Home>, <End>, <PgUp> <PgDn>, . . . , , - . - Ctrl. <NumLock> - , . [3.1.7] - NumLock. : ASCII: 43 + 45 - 46 . 48-57 0-9 : 72,75,77,80 CursorUp,Left,Right&Down 71,73,79,81 Home,PgUp,End,PgDn 82,83 Ins,Del 115,116 Ctlr-cursor left, -cursor right 117,118,119,132 Ctlr-end, -PgDn, -Home, -PgUp AT 84- , Sys Req, . , . - , AX 8500H 15H. AX 8501H, - 15H. BIOS AT 84H 85H 15H, . 15H, - Sys Req. AL, (AL = 0) (AL = 1). , 15H , Sys Req. Sys Req , AH 84H 85H, - 15H [1.2.4]. 3.2.5 . 10 Shift, Ctrl Alt, 40 . , ASCII 0, : 59-68 F1-F10 84-93 Shift + F1-F10 94-103 Ctrl + F1-F10 104-113 Alt + F1-F10 , 10 , <ScrollLock> + <Fn>, [3.2.3]. PCjr 62 , 83 IBM PC XT, 84 AT. - , : PCjr PC/XT/AT Fn + 1-0 F1-F10 Fn + B Break Fn + E Ctrl + PrtSc Fn + P Shift + PrtSc Fn + Q Ctrl + NumLock Fn + S ScrollLock Fn + CursorLeft PgUp Fn + CursorRight PgDn Fn + CursorUp Home Fn + CursorDown End Fn + - (- ) Fn + = (- ) - [3.2.2]. 3.2.6 . . , - , - - - ASCII . , MS DOS 2.0, - . DOS - BIOS 16H . Esc-. , Esc (ASCII 27), " ", .. . Esc . MS DOS , . , . : Esc (ASCII 27), [, - , (;), , - , , p. , 27,'[65;97p' A (ASCII 65) a (ASCII 97). , . 27,'[0;68;0;83p' F10 (0;68) , Delete (0;83). , [3.3.5]. . -- , , - . , 27,'["A";"a"p' A a. - - , . 27,'["A";"A is for Apple"p' , A , A is for Apple. Esc-- - , , , . , , . . , ANSI.SYS . Esc-- . . PCjr AT. AT ; , . AT. PCjr BIOS 16H (AH = 3 AH = 4), - . " " - , , . - . 3 AL 0, , , 1 - , , 2 - , 3 - 1 2 4 - . 4, AL 1, , 0 - . . , PRINT WRITE Esc-. , MS DOS, " ". , . , , 2000:0000. DATA . $. 100 DATA &H55, &H8B, &HEC, &H8B, &H5E, &H06, &H8B, &H57 110 DATA &H01, &HB4, &H09, &HCD, &H21, &H5D, &HCA, &H02, &H00 120 ' 2000:0000 130 DEF SEG = &H2000 ' 140 FOR N=0 TO 16 ' 17 150 READ Q ' 160 POKE N,Q ' 170 NEXT ' 180 ''' A a 190 Q$ = CHR$(27)+"[65;97p$" ' 200 ROUTINE = 0 ' 210 CALL ROUTINE(Q$) ' . 9 21H . DS:DX $ (24H). F2 (0;60) , Del (0;83). ;--- CHANGE_KEY DB 27,'[0;60;0;83p$' ;--- LEA DX,CHANGE_KEY ;DS:DX MOV AH,9 ; INT 21H ; 3.2.7 . - , - . - . , (ASCII 13), . , , - , , . , , , . - , , "", INPUT , , INKEY$, - . , - , , DOS, DOS. BIOS 16H, - . , - . , - F1, MACRO1$, - : 1000 ''' , C - 2- 1010 IF C=59 THEN LOCATE X,Y: PRINT MACRO1$ . , 10 , 15 . , . KEY . KEY 5,"END" , #5 END . - , ASCII ( CHR$) . KEY 5,"A" KEY 5,CHR$(65) . , (ASCII 13). FILES, , , - F1 KEY 1,"FILES"+CHR$(13). - . , ,, KEY 1,"" , F1 . - . - KEY ON KEY OFF. , - KEY LIST. : KEY 1,"ERASE" ; F1 "ERASE" KEY 10,"LIST"+CHR$(13) ; F10 KEY 7,"" ; F7 KEY OFF ; KEY ON ; KEY LIST ; 10 , MS DOS, [3.2.6]. . MS DOS - , [3.2.6]. , . , , . : 27,'["A";"SET"p' ; SET A 27,'["ASET"p' ; 27,'[27;"dir";13p' ; dir<CR> Esc 27,'[0;59;"copy *.* b:";13p' ; F1 27,'[0;68;0;72;0;72;0;72p' ; F10 ; 3.2.8 Ctrl-Break. Ctrl-Break, , - Ctrl-Break. , DOS, . - / MS DOS ( 1 C 21H, 6 7). BREAK=ON AUTOEXEC.BAT, CONFIG.SYS, MS DOS , , DOS Ctrl-Break. . Ctrl-Break . DOS Ctrl-Break, , 23H. DOS . - , . , - . , SP - ( COM) RET. , , / - . - , . - - Ctrl-Break. - Ctrl-Break, IRET, . . - . RET, IRET, , RET . , , (SP) . , EXE. , , - , .. 400 , SP 396. COM Ctrl-Break 21H. ;--- Ctrl-Break C_B PROC FAR MOV AX,396 ; MOV SP,AX ; RET ; DOS C_B ENDP ; ;--- PUSH DS ; MOV AX,SEG C_B ; MOV DS,AX ; MOV DX,OFFSET C_B ; MOV AH,25H ; MOV AL,23H ; INT 21H ; POP DS ; Ctrl-Break. AL 0 33 21H. DL 1, Ctrl-Break, 0 - . AL 1, . , , DL 0 1, . 3.2.9 PrtSc. PrtSc (ASCII 42), , 114, Ctrl. <Shift> + <PrtSc> . (, - -, [3.1.7]). , - . <Shift> + <PrtSc> , 5. - . 5 , . - , . , , , - Shift + PrtSc, . , . , - PrtSc , MS DOS [1.3.4]. - , . . . (F000:FF54) . , , Shift + PrtSc, ( . [1.2.3]). ;--- PrtSc CLI ; MOV AX,SEG NEW_ROUTINE ; MOV DS,AX ; MOV DX,OFFSET NEW_ROUTINE ; MOV AL,5 ; MOV AH,25H ; INT 21H ; STI ; . . ;--- PrtSc NEW_ROUTINE PROC FAR STI ; PUSH AX ; . . MOV CX,100 ; . . POP AX ; IRET ; NEW_ROUTINE ENDP ;  3. . - . . - : - Ins , , , - -. - 4 ASCII, . ASCII 8 - BackSpace Ctrl-H, ASCII 9 - Tab Ctrl-I, ASCII 13 - Enter Ctrl-M, ASCII 27 - Esc Ctrl-[. - , 32 ASCII - , , . 10H 10H, ( [4.3.1]). - Ctrl - ASCII. Ctrl () . - <5> , NumLock. - Shift-PrtSc Ctrl-Alt ( SysReq AT) , - . - . Ctrl-Break ( - ) , Ctrl-Break MS DOS. - ASCII, 0, Alt, ASCII , , Alt. 0 , - . , , - , . , Ctrl + Cur- sorUp, CursorUp, , Ctrl. Ctrl , CursorUp - . 3.3.1 . , . - , - . , , IBM . : ScrollLock , , CTRL 4/6 /. : /. Pg Up 25 . Pg Dn 25 . CTRL END . CTRL PgDn . HOME . - . CTRL HOME . END . BACKSPACE/DELETE DELETE , - , . BACKSPACE . INS /. TAB/BACKTAB - , - - Shift. ESC . 3.3.2 -. -, " " - , " " - . , AT, 128 ( 7 = 1). T 20 148 . AT , , 0F0H. PCjr - , 55. , , . ASCII . "1" 2 "T" 20 "L" 38 "2" 3 "Y" 21 ";" 39 "3" 4 "U" 22 "'" 40 "4" 5 "I" 23 "`" 41 "5" 6 "O" 24 "\" 43 "6" 7 "P" 25 "Z" 44 "7" 8 "[" 26 "X" 45 "8" 9 "]" 27 "C" 46 "9" 10 "A" 30 "V" 47 "0" 11 "S" 31 "B" 48 "-" 12 "D" 32 "N" 49 "=" 13 "F" 33 "M" 50 "Q" 16 "G" 34 "," 51 "W" 17 "H" 35 "." 52 "E" 18 "J" 36 "/" 53 "R" 19 "K" 37 57 Esc - 1 Ctrl - 29 Alt - 56 BackSpace - 14 left shift - 42 CapsLock - 58 Tab - 15 right shift - 42 NumLock - 58 Enter - 28 PrtSc - 55 ScrollLock - 70 F1 - 59 F5 - 63 F9 - 67 F2 - 60 F6 - 64 F10 - 68 F3 - 61 F7 - 65 F4 - 62 F8 - 66 "7" - 71 "5" - 76 "3" - 81 "8" - 72 "6" - 77 "0" - 82 "9" - 73 "+" - 78 "." - 83 "-" - 74 "1" - 79 Sys Req - 132 ( AT) "4" - 75 "2" - 80 - 55 ( PCjr) 3.3.3 ASCII 0 31, , [7.1.9]. , ASCII 1 255 , Alt ( - NumLock). Alt , . 10- 16- 10- 16- (null) 0 00 00000000 0 48 30 00110000 1 01 00000001 1 49 31 00110001 2 02 00000010 2 50 32 00110010 3 03 00000011 3 51 33 00110011 4 04 00000100 4 52 34 00110100 5 05 00000101 5 53 35 00110101 6 06 00000110 6 54 36 00110110 7 07 00000111 7 55 37 00110111 8 08 00001000 8 56 38 00111000 9 09 00001001 9 57 39 00111001 10 0A 00001010 : 58 3A 00111010 11 0B 00001011 ; 59 3B 00111011 12 0C 00001100 < 60 3C 00111100 13 0D 00001101 = 61 3D 00111101 14 0E 00001110 > 62 3E 00111110 15 0F 00001111 ? 63 3F 00111111 16 10 00010000 @ 64 40 01000000 17 11 00010001 A 65 41 01000001 18 12 00010010 B 66 42 01000010 19 13 00010011 C 67 43 01000011 20 14 00010100 D 68 44 01000100 21 15 00010101 E 69 45 01000101 22 16 00010110 F 70 46 01000110 23 17 00010111 G 71 47 01000111 24 18 00011000 H 72 48 01001000 25 19 00011001 I 73 49 01001001 26 1A 00011010 J 74 4A 01001010 27 1B 00011011 K 75 4B 01001011 28 1C 00011100 L 76 4C 01001100 29 1D 00011101 M 77 4D 01001101 30 1E 00011110 N 78 4E 01001110 31 1F 00011111 O 79 4F 01001111 32 20 00100000 P 80 50 01010000 ! 33 21 00100001 Q 81 51 01010001 " 34 22 00100010 R 82 52 01010010 # 35 23 00100011 S 83 53 01010011 $ 36 24 00100100 T 84 54 01010100 % 37 25 00100101 U 85 55 01010101 & 38 26 00100110 V 86 56 01010110 ' 39 27 00100111 W 87 57 01010111 ( 40 28 00101000 X 88 58 01011000 ) 41 29 00101001 Y 89 59 01011001 * 42 2A 00101010 Z 90 5A 01011010 + 43 2B 00101011 [ 91 5B 01011011 , 44 2C 00101100 \ 92 5C 01011100 - 45 2D 00101101 ] 93 5D 01011101 . 46 2E 00101110 ^ 94 5E 01011110 / 47 2F 00101111 _ 95 5F 01011111 10- 16- 10- 16- ` 96 60 01100000 153 99 10011001 a 97 61 01100001 154 9A 10011010 b 98 62 01100010 155 9B 10011011 c 99 63 01100011 156 9C 10011100 d 100 64 01100100 157 9D 10011101 e 101 65 01100101 158 9E 10011110 f 102 66 01100110 159 9F 10011111 g 103 67 01100111 160 A0 10100000 h 104 68 01101000 161 A1 10100001 i 105 69 01101001 162 A2 10100010 j 106 6A 01101010 163 A3 10100011 k 107 6B 01101011 164 A4 10100100 l 108 6C 01101100 165 A5 10100101 m 109 6D 01101101 166 A6 10100110 n 110 6E 01101110 167 A7 10100111 o 111 6F 01101111 168 A8 10101000 p 112 70 01110000 169 A9 10101001 q 113 71 01110001 170 AA 10101010 r 114 72 01110010 171 AB 10101011 s 115 73 01110011 172 AC 10101100 t 116 74 01110100 173 AD 10101101 u 117 75 01110101 174 AE 10101110 v 118 76 01110110 175 AF 10101111 w 119 77 01110111 176 B0 10110000 x 120 78 01111000 177 B1 10110001 y 121 79 01111001 178 B2 10110010 z 122 7A 01111010 179 B3 10110011 { 123 7B 01111011 180 B4 10110100 | 124 7C 01111100 181 B5 10110101 } 125 7D 01111101 182 B6 10110110 ~ 126 7E 01111110 183 B7 10110111 127 7F 01111111 184 B8 10111000 128 80 10000000 185 B9 10111001 129 81 10000001 186 BA 10111010 130 82 10000010 187 BB 10111011 131 83 10000011 188 BC 10111100 132 84 10000100 189