1 | /**************************************************************************** |
---|
2 | |
---|
3 | THIS SOFTWARE IS NOT COPYRIGHTED |
---|
4 | |
---|
5 | HP offers the following for use in the public domain. HP makes no |
---|
6 | warranty with regard to the software or it's performance and the |
---|
7 | user accepts the software "AS IS" with all faults. |
---|
8 | |
---|
9 | HP DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD |
---|
10 | TO THIS SOFTWARE INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
---|
11 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
---|
12 | |
---|
13 | ****************************************************************************/ |
---|
14 | |
---|
15 | /* Debugger register array offets */ |
---|
16 | |
---|
17 | #define R_gr0 0 |
---|
18 | #define R_gr1 4 |
---|
19 | #define R_gr2 8 |
---|
20 | #define R_gr3 12 |
---|
21 | #define R_gr4 16 |
---|
22 | #define R_gr5 20 |
---|
23 | #define R_gr6 24 |
---|
24 | #define R_gr7 28 |
---|
25 | #define R_gr8 32 |
---|
26 | #define R_gr9 36 |
---|
27 | #define R_gr10 40 |
---|
28 | #define R_gr11 44 |
---|
29 | #define R_gr12 48 |
---|
30 | #define R_gr13 52 |
---|
31 | #define R_gr14 56 |
---|
32 | #define R_gr15 60 |
---|
33 | #define R_gr16 64 |
---|
34 | #define R_gr17 68 |
---|
35 | #define R_gr18 72 |
---|
36 | #define R_gr19 76 |
---|
37 | #define R_gr20 80 |
---|
38 | #define R_gr21 84 |
---|
39 | #define R_gr22 88 |
---|
40 | #define R_gr23 92 |
---|
41 | #define R_gr24 96 |
---|
42 | #define R_gr25 100 |
---|
43 | #define R_gr26 104 |
---|
44 | #define R_gr27 108 |
---|
45 | #define R_gr28 112 |
---|
46 | #define R_gr29 116 |
---|
47 | #define R_gr30 120 |
---|
48 | #define R_gr31 124 |
---|
49 | |
---|
50 | #define R_sr0 128 |
---|
51 | #define R_sr1 132 |
---|
52 | #define R_sr2 136 |
---|
53 | #define R_sr3 140 |
---|
54 | #define R_sr4 144 |
---|
55 | #define R_sr5 148 |
---|
56 | #define R_sr6 152 |
---|
57 | #define R_sr7 156 |
---|
58 | |
---|
59 | #define R_cr0 160 |
---|
60 | #define R_cr1 164 |
---|
61 | #define R_cr2 168 |
---|
62 | #define R_cr3 172 |
---|
63 | #define R_cr4 176 |
---|
64 | #define R_cr5 180 |
---|
65 | #define R_cr6 184 |
---|
66 | #define R_cr7 188 |
---|
67 | #define R_cr8 192 |
---|
68 | #define R_cr9 196 |
---|
69 | #define R_cr10 200 |
---|
70 | #define R_cr11 204 |
---|
71 | #define R_cr12 208 |
---|
72 | #define R_cr13 212 |
---|
73 | #define R_cr14 216 |
---|
74 | #define R_cr15 220 |
---|
75 | #define R_cr16 224 |
---|
76 | #define R_cr17H 228 |
---|
77 | #define R_cr18H 232 |
---|
78 | #define R_cr19 236 |
---|
79 | #define R_cr20 240 |
---|
80 | #define R_cr21 244 |
---|
81 | #define R_cr22 248 |
---|
82 | #define R_cr23 252 |
---|
83 | #define R_cr24 256 |
---|
84 | #define R_cr25 260 |
---|
85 | #define R_cr26 264 |
---|
86 | #define R_cr27 268 |
---|
87 | #define R_cr28 272 |
---|
88 | #define R_cr29 276 |
---|
89 | #define R_cr30 280 |
---|
90 | #define R_cr31 284 |
---|
91 | |
---|
92 | #define R_cr17T 288 |
---|
93 | #define R_cr18T 292 |
---|
94 | |
---|
95 | #define R_cpu0 296 |
---|
96 | |
---|
97 | #define R_SIZE 300 |
---|
98 | |
---|
99 | #define min_stack 64 |
---|
100 | |
---|
101 | ; ----------------------------------------------------------- |
---|
102 | ; ------ ASCII control codes |
---|
103 | ; ----------------------------------------------------------- |
---|
104 | |
---|
105 | #define NULL 0x00 /* <break> soft-reset (input only) */ |
---|
106 | #define DELP 0x03 /* <ctrl>C del-collapse (input only, non-std) */ |
---|
107 | #define DELE 0x04 /* <ctrl>D del-to_eol (input only, non-std) */ |
---|
108 | #define BELL 0x07 /* <ctrl>G bell - audio */ |
---|
109 | #define BS 0x08 /* <ctrl>H back space (left arrow) */ |
---|
110 | #define HT 0x09 /* <ctrl>I horizontal tab */ |
---|
111 | #define LF 0x0a /* <ctrl>J line feed (down arrow) */ |
---|
112 | #define VT 0x0b /* <ctrl>K vertical tab (up arrow) */ |
---|
113 | #define FF 0x0c /* <ctrl>L form feed (right arrow) */ |
---|
114 | #define RTN 0x0d /* <ctrl>M carrage return */ |
---|
115 | #define CR 0x0d /* <ctrl>M carrage return */ |
---|
116 | #define INSC 0x0e /* <ctrl>N insert char (input only, non-std) */ |
---|
117 | #define XON 0x11 /* <ctrl>Q DC1 - continue */ |
---|
118 | #define BT 0x12 /* <ctrl>R reverse tab (input only, non-std) */ |
---|
119 | #define XOFF 0x13 /* <ctrl>S DC3 - wait */ |
---|
120 | #define INSE 0x16 /* <ctrl>V insert-expand (input only, non-std) */ |
---|
121 | #define DELC 0x18 /* <ctrl>X delete char (input only, non-std) */ |
---|
122 | #define CLRH 0x1a /* <ctrl>Z clear/home (input only) */ |
---|
123 | #define ESC 0x1b /* <ctrl>[ escape (must call key again) */ |
---|
124 | #define ENDL 0x1c /* <ctrl>\ cursor-to-eol (input only, non-std) */ |
---|
125 | #define HOME 0x1e /* <ctrl>^ cursor home (input only) */ |
---|
126 | #define DEL 0x7f /* <shift>BS destructive backspace */ |
---|
127 | |
---|