]> 4ch.mooo.com Git - 16.git/blob - 16/scrasm/CONSTANT.INC
added more ems xms junk to the 16/ dir for reference
[16.git] / 16 / scrasm / CONSTANT.INC
1 PEL_READ_REG    EQU     03C7h   ;Color register, read address\r
2 PEL_WRITE_REG   EQU     03C8h   ;Color register, write address\r
3 PEL_DATA_REG    EQU     03C9h   ;Color register, data port\r
4 SC_INDEX        equ     03C4h   ;Sequence Controller Index\r
5 CRTC_INDEX      equ     03D4h   ;CRT Controller Index\r
6 MISC_OUTPUT     equ     03C2h   ;Miscellaneous Output register\r
7 SCREEN_SEG      equ     0a000h  ;segment of display memory in mode X\r
8 INPUT_STATUS_1  equ     03DAh   ;Input Status 1 register\r
9 ATC_INDEX       equ     03C0h   ;Attribute Controller\r
10 START_ADDRESS_HIGH equ  0Ch     ;bitmap start address high byte\r
11 START_ADDRESS_LOW equ   0Dh     ;bitmap start address low byte\r
12 GC_INDEX        EQU     03CEh\r
13 BIT_MASK        EQU     08h\r
14 MAP_MASK        EQU     02h\r
15 \r
16 ALL_COPY_BITS   EQU     00000h+BIT_MASK\r
17 ALL_DRAW_BITS   EQU     0FF00h+BIT_MASK\r
18 \r
19 SQUARE_WIDTH    EQU     16\r
20 SQUARE_HEIGHT   EQU     16\r
21 SCREEN_WIDTH    EQU     320\r
22 SCREEN_HEIGHT   EQU     200\r
23 VIRTUAL_WIDTH   EQU     352\r
24 VIRTUAL_HEIGHT  EQU     240\r
25 \r
26 PAGE_0          EQU     0\r
27 PAGE_1          EQU     05540h  ;05470h  ;5540h\r
28 PAGE_2          EQU     0AA80h  ;0A8E0h  ;AA80h\r
29 \r
30 SCROLL_SPEED    EQU     1               ; Don't let it go above 8!\r
31 MAGIC_NUM       EQU     100\r
32 \r
33 CPU8086         EQU     0\r
34 CPU80286        EQU     1\r
35 CPU80386        EQU     2\r
36 CPU80486        EQU     3\r
37 \r
38 ;======================================================================\r
39 ;                           Key Assignments\r
40 ;======================================================================\r
41 kESC            EQU       2\r
42 kONE            EQU       4\r
43 kTWO            EQU       6\r
44 kTHREE          EQU       8\r
45 kFOUR           EQU      10\r
46 kFIVE           EQU      12\r
47 kSIX            EQU      14\r
48 kSEVEN          EQU      16\r
49 kEIGHT          EQU      18\r
50 kNINE           EQU      20\r
51 kZERO           EQU      22\r
52 kMINUS          EQU      24\r
53 kEQUAL          EQU      26\r
54 kBACKSPACE      EQU      28\r
55 kTAB            EQU      30\r
56 kQ              EQU      32\r
57 kW              EQU      34\r
58 kE              EQU      36\r
59 kR              EQU      38\r
60 kT              EQU      40\r
61 kY              EQU      42\r
62 kU              EQU      44\r
63 kI              EQU      46\r
64 kO              EQU      48\r
65 kP              EQU      50\r
66 kL_BRACE        EQU      52\r
67 kR_BRACE        EQU      54\r
68 kENTER          EQU      56\r
69 kCTRL           EQU      58\r
70 kA              EQU      60\r
71 kS              EQU      62\r
72 kD              EQU      64\r
73 kF              EQU      66\r
74 kG              EQU      68\r
75 kH              EQU      70\r
76 kJ              EQU      72\r
77 kK              EQU      74\r
78 kL              EQU      76\r
79 kSEMICOLON      EQU      78\r
80 kQUOTE          EQU      80\r
81 kBACKQUOTE      EQU      82\r
82 kL_SHIFT        EQU      84\r
83 kBACKSLASH      EQU      86\r
84 kZ              EQU      88\r
85 kX              EQU      90\r
86 kC              EQU      92\r
87 kV              EQU      94\r
88 kB              EQU      96\r
89 kN              EQU      98\r
90 kM              EQU     100\r
91 kCOMMA          EQU     102\r
92 kPERIOD         EQU     104\r
93 kSLASH          EQU     106\r
94 kR_SHIFT        EQU     108\r
95 kGREY_STAR      EQU     110\r
96 kALT            EQU     112\r
97 kSPACE          EQU     114\r
98 kCAPSLOCK       EQU     116\r
99 kF1             EQU     118\r
100 kF2             EQU     120\r
101 kF3             EQU     122\r
102 kF4             EQU     124\r
103 kF5             EQU     126\r
104 kF6             EQU     128\r
105 kF7             EQU     130\r
106 kF8             EQU     132\r
107 kF9             EQU     134\r
108 kF10            EQU     136\r
109 kNUMLOCK        EQU     138\r
110 kSCRLLOCK       EQU     140\r
111 kHOME           EQU     142\r
112 kUP             EQU     144\r
113 kPAGE_UP        EQU     146\r
114 kGREY_MINUS     EQU     148\r
115 kLEFT           EQU     150\r
116 kPAD_FIVE       EQU     152\r
117 kRIGHT          EQU     154\r
118 kGREY_PLUS      EQU     156\r
119 kEND            EQU     158\r
120 kDOWN           EQU     160\r
121 kPAGE_DOWN      EQU     162\r
122 kINSERT         EQU     164\r
123 kDELETE         EQU     166\r
124 \r
125 kF11            EQU     174\r
126 kF12            EQU     176\r