#warning FALSE

#define  k_up         18432
#define  k_down       20480
#define  k_left       19200
#define  k_right      19712
#define  k_esc          283
#define  k_enter       7181

#define  k_home       18176
#define  k_end        20224
#define  k_pageup     18688
#define  k_pagedown   20736

#define  k_num1      0x4F31
#define  k_num2      0x5032
#define  k_num3      0x5133
#define  k_num4      0x4B34
#define  k_num5      0x4C35
#define  k_num6      0x4D36
#define  k_num7      0x4737
#define  k_num8      0x4838
#define  k_num9      0x4939
#define  k_num0      0x5230
#define  k_numminus  0x4A2D
#define  k_numplus   0x4E2B
#define  k_numperiod 0x532E

#define  k_ctrlreturn     0x1C0A
#define  k_backspace        3592
#define  k_ctrlbackspace  0x0E7F
#define  k_delete          21248
#define  k_tab              3849
#define  k_shifttab       0x0F00
#define  k_space           14624
#define  k_insert          20992

#define  k_F1       15104
#define  k_F2       15360
#define  k_F3       15616
#define  k_F4       15872
#define  k_F5       16128
#define  k_F6       16384
#define  k_F7       16640
#define  k_F8       16896
#define  k_F9       17152
#define  k_F10      17408
#define  k_F11      34048   // BIOSEREADKEY required, not BIOSREADKEY
#define  k_F12      34304   // BIOSEREADKEY required, not BIOSREADKEY

#define  k_1          561
#define  k_2          818
#define  k_3         1075
#define  k_4         1332
#define  k_5         1589
#define  k_6         1846
#define  k_7         2103
#define  k_8         2360
#define  k_9         2617
#define  k_0         2864

#define  k_q         4209
#define  k_w         4471
#define  k_e         4709
#define  k_a         7777
#define  k_s         8051
#define  k_d         8292
#define  k_p         6512




//Возвращает нажатую клавишу
:word fastcall ReadKey()
{
 AX=0; $int 16h
}
