annotate lwasm/instab.c @ 255:6363b9ebf825 2.x

Support files with line numbers in lwasm
author lost
date Sun, 20 Dec 2009 05:40:47 +0000
parents c7a41b4c89b3
children e27279180a73
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
1 /*
4
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
2 instab.c
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
3 Copyright © 2008 William Astle
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
4
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
5 This file is part of LWASM.
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
6
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
7 LWASM is free software: you can redistribute it and/or modify it under the
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
8 terms of the GNU General Public License as published by the Free Software
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
9 Foundation, either version 3 of the License, or (at your option) any later
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
10 version.
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
11
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
12 This program is distributed in the hope that it will be useful, but WITHOUT
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
15 more details.
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
16
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
17 You should have received a copy of the GNU General Public License along with
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
18 this program. If not, see <http://www.gnu.org/licenses/>.
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
19
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
20
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
21 Contains the instruction table for assembling code
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
22 */
212
bae1e3ecdce1 More preparation for gnulib integration
lost
parents: 197
diff changeset
23 #include <config.h>
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
24
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
25 #include <stdlib.h>
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
26 #define __instab_c_seen__
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
27 #include "instab.h"
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
28
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
29 extern OPFUNC(insn_inh);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
30 extern OPFUNC(insn_gen8);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
31 extern OPFUNC(insn_gen16);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
32 extern OPFUNC(insn_gen32);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
33 extern OPFUNC(insn_gen0);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
34 extern OPFUNC(insn_rtor);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
35 extern OPFUNC(insn_imm8);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
36 extern OPFUNC(insn_rel8);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
37 extern OPFUNC(insn_rel16);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
38 extern OPFUNC(insn_rlist);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
39 extern OPFUNC(insn_bitbit);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
40 extern OPFUNC(insn_logicmem);
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
41 extern OPFUNC(insn_tfm);
228
560843a951f7 Added compatibility alternatives to TFM
lost
parents: 225
diff changeset
42 extern OPFUNC(insn_tfmrtor);
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
43 extern OPFUNC(insn_indexed);
50
e672232caffe Added rmb pseudo op
lost
parents: 47
diff changeset
44
47
804d7465e0f9 Implemented ORG and fixed problems with constants using $, &, or @ to specify base
lost
parents: 25
diff changeset
45 extern OPFUNC(pseudo_org);
50
e672232caffe Added rmb pseudo op
lost
parents: 47
diff changeset
46 extern OPFUNC(pseudo_equ);
e672232caffe Added rmb pseudo op
lost
parents: 47
diff changeset
47 extern OPFUNC(pseudo_rmb);
53
493cb8ea50a0 Added rm[dq], zm[bdq]
lost
parents: 52
diff changeset
48 extern OPFUNC(pseudo_rmd);
493cb8ea50a0 Added rm[dq], zm[bdq]
lost
parents: 52
diff changeset
49 extern OPFUNC(pseudo_rmq);
493cb8ea50a0 Added rm[dq], zm[bdq]
lost
parents: 52
diff changeset
50 extern OPFUNC(pseudo_zmb);
493cb8ea50a0 Added rm[dq], zm[bdq]
lost
parents: 52
diff changeset
51 extern OPFUNC(pseudo_zmd);
493cb8ea50a0 Added rm[dq], zm[bdq]
lost
parents: 52
diff changeset
52 extern OPFUNC(pseudo_zmq);
52
b9856da2674a Added file inclusion
lost
parents: 50
diff changeset
53 extern OPFUNC(pseudo_include);
54
360d53062bb9 Fixed typo in instruction table and added END directive
lost
parents: 53
diff changeset
54 extern OPFUNC(pseudo_end);
56
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
55 extern OPFUNC(pseudo_align);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
56 extern OPFUNC(pseudo_error);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
57 extern OPFUNC(pseudo_fcc);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
58 extern OPFUNC(pseudo_fcs);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
59 extern OPFUNC(pseudo_fcn);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
60 extern OPFUNC(pseudo_fcb);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
61 extern OPFUNC(pseudo_fdb);
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
62 extern OPFUNC(pseudo_fqb);
57
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
63 extern OPFUNC(pseudo_ifne);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
64 extern OPFUNC(pseudo_ifeq);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
65 extern OPFUNC(pseudo_ifgt);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
66 extern OPFUNC(pseudo_ifge);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
67 extern OPFUNC(pseudo_iflt);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
68 extern OPFUNC(pseudo_ifle);
236
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
69 extern OPFUNC(pseudo_ifp1);
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
70 extern OPFUNC(pseudo_ifp2);
57
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
71 extern OPFUNC(pseudo_else);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
72 extern OPFUNC(pseudo_endc);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
73 extern OPFUNC(pseudo_macro);
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
74 extern OPFUNC(pseudo_endm);
65
31d8e85706e7 Implemented setdp and corrected handling of direct page detection in insn_gen_aux()
lost
parents: 63
diff changeset
75 extern OPFUNC(pseudo_setdp);
63
d85ba47b1e8f Moved symbol registration so symbols that are in skipped code do not get registered and so EQU/SET can do their own registration
lost
parents: 57
diff changeset
76 extern OPFUNC(pseudo_set);
73
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
77 extern OPFUNC(pseudo_section);
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
78 extern OPFUNC(pseudo_endsection);
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
79 extern OPFUNC(pseudo_pragma);
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
80 extern OPFUNC(pseudo_starpragma);
82
03be43ae19cf Added EXTERN directive
lost
parents: 73
diff changeset
81 extern OPFUNC(pseudo_extern);
90
6097cb1486f8 Added EXPORT pseudo op
lost
parents: 82
diff changeset
82 extern OPFUNC(pseudo_export);
104
2ba8f9ef1417 Added ifdef/ifndef conditionals
lost
parents: 90
diff changeset
83 extern OPFUNC(pseudo_ifdef);
2ba8f9ef1417 Added ifdef/ifndef conditionals
lost
parents: 90
diff changeset
84 extern OPFUNC(pseudo_ifndef);
158
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
85 extern OPFUNC(pseudo_noop);
225
058f18119025 Fixed filename parsing bug in include directive and added includebin directive
lost
parents: 212
diff changeset
86 extern OPFUNC(pseudo_includebin);
243
f9f01a499525 Added zero-width external references
lost
parents: 236
diff changeset
87 extern OPFUNC(pseudo_extdep);
90
6097cb1486f8 Added EXPORT pseudo op
lost
parents: 82
diff changeset
88
254
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
89 extern OPFUNC(pseudo_struct);
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
90 extern OPFUNC(pseudo_endstruct);
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
91
236
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
92 extern OPFUNC(pseudo_os9);
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
93 extern OPFUNC(pseudo_mod);
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
94 extern OPFUNC(pseudo_emod);
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
95
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
96 instab_t instab[] =
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
97 {
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
98 { "abx", { 0x3a, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
99 { "adca", { 0x99, 0xa9, 0xb9, 0x89 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
100 { "adcb", { 0xd9, 0xe9, 0xf9, 0xc9 }, insn_gen8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
101 { "adcd", { 0x1099, 0x10a9, 0x10b9, 0x1089 }, insn_gen16 , 0, 0, 0, 1},
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
102 { "adcr", { 0x1031, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
103 { "adda", { 0x9b, 0xab, 0xbb, 0x8b }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
104 { "addb", { 0xdb, 0xeb, 0xfb, 0xcb }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
105 { "addd", { 0xd3, 0xe3, 0xf3, 0xc3 }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
106 { "adde", { 0x119b, 0x11ab, 0x11bb, 0x118b }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
107 { "addf", { 0x11db, 0x11eb, 0x11fb, 0x11cb }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
108 { "addr", { 0x1030, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
109 { "addw", { 0x109b, 0x10ab, 0x10bb, 0x108b }, insn_gen16, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
110 { "aim", { 0x02, 0x62, 0x72, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
111 { "anda", { 0x94, 0xa4, 0xb4, 0x84 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
112 { "andb", { 0xd4, 0xe4, 0xf4, 0xc4 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
113 { "andcc", { 0x1c, -0x1, -0x1, 0x1c }, insn_imm8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
114 { "andd", { 0x1094, 0x10a4, 0x10b4, 0x1084 }, insn_gen16, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
115 { "andr", { 0x1034, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
116 { "asl", { 0x08, 0x68, 0x78, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
117 { "asla", { 0x48, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
118 { "aslb", { 0x58, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
119 { "asld", { 0x1048, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
120 { "asr", { 0x07, 0x67, 0x77, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
121 { "asra", { 0x47, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
122 { "asrb", { 0x57, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
123 { "asrd", { 0x1047, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
124
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
125 { "band", { 0x1130, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
126 { "bcc", { 0x24, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
127 { "bcs", { 0x25, -0x1, -0x1, -0x1 }, insn_rel8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
128 { "beor", { 0x1134, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
129 { "beq", { 0x27, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
130 { "bge", { 0x2c, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
131 { "bgt", { 0x2e, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
132 { "bhi", { 0x22, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
133 { "bhs", { 0x24, -0x1, -0x1, -0x1 }, insn_rel8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
134 { "biand", { 0x1131, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
135 { "bieor", { 0x1135, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
136 { "bior", { 0x1133, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
137 { "bita", { 0x95, 0xa5, 0xb5, 0x85 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
138 { "bitb", { 0xd5, 0xe5, 0xf5, 0xc5 }, insn_gen8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
139 { "bitd", { 0x1095, 0x10a5, 0x10b5, 0x1085 }, insn_gen16, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
140 { "bitmd", { 0x113c, -0x1, -0x1, 0x113c }, insn_imm8, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
141 { "ble", { 0x2f, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
142 { "blo", { 0x25, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
143 { "bls", { 0x23, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
144 { "blt", { 0x2d, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
145 { "bmi", { 0x2b, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
146 { "bne", { 0x26, -0x1, -0x1, -0x1 }, insn_rel8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
147 { "bor", { 0x1132, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
148 { "bpl", { 0x2a, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
149 { "bra", { 0x20, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
150 { "brn", { 0x21, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
151 { "bsr", { 0x8d, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
152 { "bvc", { 0x28, -0x1, -0x1, -0x1 }, insn_rel8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
153 { "bvs", { 0x29, -0x1, -0x1, -0x1 }, insn_rel8 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
154
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
155 { "clr", { 0x0f, 0x6f, 0x7f, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
156 { "clra", { 0x4f, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
157 { "clrb", { 0x5f, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
158 { "clrd", { 0x104f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
159 { "clre", { 0x114f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
160 { "clrf", { 0x115f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
161 { "clrw", { 0x105f, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
162 { "cmpa", { 0x91, 0xa1, 0xb1, 0x81 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
163 { "cmpb", { 0xd1, 0xe1, 0xf1, 0xc1 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
164 { "cmpd", { 0x1093, 0x10a3, 0x10b3, 0x1083 }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
165 { "cmpe", { 0x1191, 0x11a1, 0x11b1, 0x1181 }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
166 { "cmpf", { 0x11d1, 0x11e1, 0x11f1, 0x11c1 }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
167 { "cmpr", { 0x1037, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
168 { "cmps", { 0x119c, 0x11ac, 0x11bc, 0x118c }, insn_gen16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
169 { "cmpu", { 0x1193, 0x11a3, 0x11b3, 0x1183 }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
170 { "cmpw", { 0x1091, 0x10a1, 0x10b1, 0x1081 }, insn_gen16, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
171 { "cmpx", { 0x9c, 0xac, 0xbc, 0x8c }, insn_gen16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
172 { "cmpy", { 0x109c, 0x10ac, 0x10bc, 0x108c }, insn_gen16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
173 { "com", { 0x03, 0x63, 0x73, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
174 { "coma", { 0x43, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
175 { "comb", { 0x53, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
176 { "comd", { 0x1043, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
177 { "come", { 0x1143, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
178 { "comf", { 0x1153, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
179 { "comw", { 0x1053, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
180 { "cwai", { 0x3c, -0x1, -0x1, -0x1 }, insn_imm8 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
181
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
182 { "daa", { 0x19, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
183 { "dec", { 0x0a, 0x6a, 0x7a, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
184 { "deca", { 0x4a, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
185 { "decb", { 0x5a, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
186 { "decd", { 0x104a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
187 { "dece", { 0x114a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
188 { "decf", { 0x115a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
189 { "decw", { 0x105a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
190 { "divd", { 0x118d, 0x119d, 0x11ad, 0x11bd }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
191 { "divq", { 0x118e, 0x119e, 0x11ae, 0x11be }, insn_gen16, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
192
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
193 { "eim", { 0x05, 0x65, 0x75, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
194 { "eora", { 0x98, 0xa8, 0xb8, 0x88 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
195 { "eorb", { 0xd8, 0xe9, 0xf9, 0xc8 }, insn_gen8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
196 { "eord", { 0x1098, 0x10a8, 0x10b8, 0x1088 }, insn_gen16, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
197 { "eorr", { 0x1036, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
198 { "exg", { 0x1e, -0x1, -0x1, -0x1 }, insn_rtor },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
199
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
200 { "inc", { 0x0c, 0x6c, 0x7c, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
201 { "inca", { 0x4c, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
202 { "incb", { 0x5c, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
203 { "incd", { 0x104c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
204 { "ince", { 0x114c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
205 { "incf", { 0x115c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
206 { "incw", { 0x105c, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
207
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
208 { "jmp", { 0x0e, 0x6e, 0x7e, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
209 { "jsr", { 0x9d, 0xad, 0xbd, -0x1 }, insn_gen0 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
210
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
211 { "lbcc", { 0x1024, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
212 { "lbcs", { 0x1025, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
213 { "lbeq", { 0x1027, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
214 { "lbge", { 0x102c, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
215 { "lbgt", { 0x102e, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
216 { "lbhi", { 0x1022, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
217 { "lbhs", { 0x1024, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
218 { "lble", { 0x102f, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
219 { "lblo", { 0x1025, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
220 { "lbls", { 0x1023, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
221 { "lblt", { 0x102d, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
222 { "lbmi", { 0x102b, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
223 { "lbne", { 0x1026, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
224 { "lbpl", { 0x102a, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
225 { "lbra", { 0x16, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
226 { "lbrn", { 0x1021, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
227 { "lbsr", { 0x17, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
228 { "lbvc", { 0x1028, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
229 { "lbvs", { 0x1029, -0x1, -0x1, -0x1 }, insn_rel16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
230 { "lda", { 0x96, 0xa6, 0xb6, 0x86 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
231 { "ldb", { 0xd6, 0xe6, 0xf6, 0xc6 }, insn_gen8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
232 { "ldbt", { 0x1136, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
233 { "ldd", { 0xdc, 0xec, 0xfc, 0xcc }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
234 { "lde", { 0x1196, 0x11a6, 0x11b6, 0x1186 }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
235 { "ldf", { 0x11d6, 0x11e6, 0x11f6, 0x11c6 }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
236 { "ldq", { 0x10dc, 0x10ec, 0x10fc, 0xcd }, insn_gen32, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
237 { "lds", { 0x10de, 0x10ee, 0x10fe, 0x10ce }, insn_gen16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
238 { "ldu", { 0xde, 0xee, 0xfe, 0xce }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
239 { "ldw", { 0x1096, 0x10a6, 0x10b6, 0x1086 }, insn_gen16, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
240 { "ldx", { 0x9e, 0xae, 0xbe, 0x8e }, insn_gen16 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
241 { "ldy", { 0x109e, 0x10ae, 0x10be, 0x108e }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
242 { "ldmd", { 0x113d, -0x1, -0x1, 0x113d }, insn_imm8, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
243 { "leas", { 0x32, -0x1, -0x1, -0x1 }, insn_indexed },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
244 { "leau", { 0x33, -0x1, -0x1, -0x1 }, insn_indexed },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
245 { "leax", { 0x30, -0x1, -0x1, -0x1 }, insn_indexed },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
246 { "leay", { 0x31, -0x1, -0x1, -0x1 }, insn_indexed },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
247 { "lsl", { 0x08, 0x68, 0x78, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
248 { "lsla", { 0x48, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
249 { "lslb", { 0x58, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
250 { "lsld", { 0x1048, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
251 { "lsr", { 0x04, 0x64, 0x74, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
252 { "lsra", { 0x44, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
253 { "lsrb", { 0x54, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
254 { "lsrd", { 0x1044, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
255 { "lsrw", { 0x1054, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
256
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
257 { "mul", { 0x3d, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
258 { "muld", { 0x118f, 0x119f, 0x11af, 0x11bf }, insn_gen16, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
259
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
260 { "neg", { 0x00, 0x60, 0x70, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
261 { "nega", { 0x40, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
262 { "negb", { 0x50, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
263 { "negd", { 0x1040, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
264 { "nop", { 0x12, -0x1, -0x1, -0x1 }, insn_inh },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
265
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
266 { "oim", { 0x01, 0x61, 0x71, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
267 { "ora", { 0x9a, 0xaa, 0xba, 0x8a }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
268 { "orb", { 0xda, 0xea, 0xfa, 0xca }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
269 { "orcc", { 0x1a, -0x1, -0x1, 0x1a }, insn_imm8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
270 { "ord", { 0x109a, 0x10aa, 0x10ba, 0x108a }, insn_gen16, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
271 { "orr", { 0x1035, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
272
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
273 { "pshs", { 0x34, -0x1, -0x1, -0x1 }, insn_rlist },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
274 { "pshsw", { 0x1038, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
275 { "pshu", { 0x36, -0x1, -0x1, -0x1 }, insn_rlist },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
276 { "pshuw", { 0x103a, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
277 { "puls", { 0x35, -0x1, -0x1, -0x1 }, insn_rlist },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
278 { "pulsw", { 0x1039, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
279 { "pulu", { 0x37, -0x1, -0x1, -0x1 }, insn_rlist },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
280 { "puluw", { 0x103b, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
281
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
282 { "rol", { 0x09, 0x69, 0x79, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
283 { "rola", { 0x49, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
284 { "rolb", { 0x59, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
285 { "rold", { 0x1049, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
286 { "rolw", { 0x1059, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
287 { "ror", { 0x06, 0x66, 0x76, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
288 { "rora", { 0x46, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
289 { "rorb", { 0x56, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
290 { "rord", { 0x1046, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
291 { "rorw", { 0x1056, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
292 { "rti", { 0x3b, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
293 { "rts", { 0x39, -0x1, -0x1, -0x1 }, insn_inh },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
294
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
295 { "sbca", { 0x92, 0xa2, 0xb2, 0x82 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
296 { "sbcb", { 0xd2, 0xe2, 0xf2, 0xc2 }, insn_gen8 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
297 { "sbcd", { 0x1092, 0x10a2, 0x10b2, 0x1082 }, insn_gen16, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
298 { "sbcr", { 0x1033, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
299 { "sex", { 0x1d, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
300 { "sexw", { 0x14, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
301 { "sta", { 0x97, 0xa7, 0xb7, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
302 { "stb", { 0xd7, 0xe7, 0xf7, -0x1 }, insn_gen0 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
303 { "stbt", { 0x1137, -0x1, -0x1, -0x1 }, insn_bitbit, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
304 { "std", { 0xdd, 0xed, 0xfd, -0x1 }, insn_gen0 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
305 { "ste", { 0x1197, 0x11a7, 0x11b7, -0x1 }, insn_gen0, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
306 { "stf", { 0x11d7, 0x11e7, 0x11f7, -0x1 }, insn_gen0, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
307 { "stq", { 0x10dd, 0x10ed, 0x10fd, -0x1 }, insn_gen0, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
308 { "sts", { 0x10df, 0x10ef, 0x10ff, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
309 { "stu", { 0xdf, 0xef, 0xff, -0x1 }, insn_gen0 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
310 { "stw", { 0x1097, 0x10a7, 0x10b7, -0x1 }, insn_gen0, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
311 { "stx", { 0x9f, 0xaf, 0xbf, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
312 { "sty", { 0x109f, 0x10af, 0x10bf, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
313 { "suba", { 0x90, 0xa0, 0xb0, 0x80 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
314 { "subb", { 0xd0, 0xe0, 0xf0, 0xc0 }, insn_gen8 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
315 { "subd", { 0x93, 0xa3, 0xb3, 0x83 }, insn_gen16 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
316 { "sube", { 0x1190, 0x11a0, 0x11b0, 0x1180 }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
317 { "subf", { 0x11d0, 0x11e0, 0x11f0, 0x11c0 }, insn_gen8, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
318 { "subr", { 0x1032, -0x1, -0x1, -0x1 }, insn_rtor, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
319 { "subw", { 0x1090, 0x10a0, 0x1090, 0x1080 }, insn_gen8, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
320 { "swi", { 0x3f, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
321 { "swi2", { 0x103f, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
322 { "swi3", { 0x113f, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
323 { "sync", { 0x13, -0x1, -0x1, -0x1 }, insn_inh },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
324
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
325 // note: r+,r+ r-,r- r+,r r,r+
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
326 { "tfm", { 0x1138, 0x1139, 0x113a, 0x113b }, insn_tfm, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
327
228
560843a951f7 Added compatibility alternatives to TFM
lost
parents: 225
diff changeset
328 // compatibility opcodes for tfm in other assemblers
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
329 { "copy", { 0x1138, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
234
4e25aa2af73c Adjusted synonyms for TFM
lost
parents: 230
diff changeset
330 { "copy+", { 0x1138, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
331 { "tfrp", { 0x1138, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
228
560843a951f7 Added compatibility alternatives to TFM
lost
parents: 225
diff changeset
332
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
333 { "copy-", { 0x1139, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
334 { "tfrm", { 0x1139, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
228
560843a951f7 Added compatibility alternatives to TFM
lost
parents: 225
diff changeset
335
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
336 { "imp", { 0x113a, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
234
4e25aa2af73c Adjusted synonyms for TFM
lost
parents: 230
diff changeset
337 { "implode",{ 0x113a, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
338 { "tfrs", { 0x113a, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
228
560843a951f7 Added compatibility alternatives to TFM
lost
parents: 225
diff changeset
339
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
340 { "exp", { 0x113b, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
234
4e25aa2af73c Adjusted synonyms for TFM
lost
parents: 230
diff changeset
341 { "expand", { 0x113b, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
342 { "tfrr", { 0x113b, -1, -1, -1}, insn_tfmrtor, 0, 0, 0, 1 },
228
560843a951f7 Added compatibility alternatives to TFM
lost
parents: 225
diff changeset
343
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
344 { "tfr", { 0x1f, -0x1, -0x1, -0x1 }, insn_rtor },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
345 { "tim", { 0x0b, 0x6b, 0x7b, -0x1 }, insn_logicmem, 0, 0, 0, 1 },
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
346 { "tst", { 0x0d, 0x6d, 0x7d, -0x1 }, insn_gen0 },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
347 { "tsta", { 0x4d, -0x1, -0x1, -0x1 }, insn_inh },
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
348 { "tstb", { 0x5d, -0x1, -0x1, -0x1 }, insn_inh },
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
349 { "tstd", { 0x104d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
350 { "tste", { 0x114d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
351 { "tstf", { 0x115d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 228
diff changeset
352 { "tstw", { 0x105d, -0x1, -0x1, -0x1 }, insn_inh, 0, 0, 0, 1 },
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
353
47
804d7465e0f9 Implemented ORG and fixed problems with constants using $, &, or @ to specify base
lost
parents: 25
diff changeset
354 { "org", { -1, -1, -1, -1 }, pseudo_org },
804d7465e0f9 Implemented ORG and fixed problems with constants using $, &, or @ to specify base
lost
parents: 25
diff changeset
355
63
d85ba47b1e8f Moved symbol registration so symbols that are in skipped code do not get registered and so EQU/SET can do their own registration
lost
parents: 57
diff changeset
356 { "equ", { -1, -1, -1, -1 }, pseudo_equ, 0, 0, 1 },
d85ba47b1e8f Moved symbol registration so symbols that are in skipped code do not get registered and so EQU/SET can do their own registration
lost
parents: 57
diff changeset
357 { "=", { -1, -1, -1, -1 }, pseudo_equ, 0, 0, 1 },
82
03be43ae19cf Added EXTERN directive
lost
parents: 73
diff changeset
358 { "extern", { -1, -1, -1, -1 }, pseudo_extern, 0, 0, 1 },
03be43ae19cf Added EXTERN directive
lost
parents: 73
diff changeset
359 { "external", { -1, -1, -1, -1 }, pseudo_extern, 0, 0, 1 },
90
6097cb1486f8 Added EXPORT pseudo op
lost
parents: 82
diff changeset
360 { "import", { -1, -1, -1, -1 }, pseudo_extern, 0, 0, 1 },
6097cb1486f8 Added EXPORT pseudo op
lost
parents: 82
diff changeset
361 { "export", { -1, -1, -1, -1 }, pseudo_export, 0, 0, 1 },
82
03be43ae19cf Added EXTERN directive
lost
parents: 73
diff changeset
362
243
f9f01a499525 Added zero-width external references
lost
parents: 236
diff changeset
363 { "extdep", { -1, -1, -1, -1 }, pseudo_extdep, 0, 0, 1 },
50
e672232caffe Added rmb pseudo op
lost
parents: 47
diff changeset
364
254
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
365 { "rmb", { -1, -1, -1, -1 }, pseudo_rmb, 0, 0, 0, 0, 1 },
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
366 { "rmd", { -1, -1, -1, -1 }, pseudo_rmd, 0, 0, 0, 0, 1 },
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
367 { "rmq", { -1, -1, -1, -1 }, pseudo_rmq, 0, 0, 0, 0, 1 },
53
493cb8ea50a0 Added rm[dq], zm[bdq]
lost
parents: 52
diff changeset
368
54
360d53062bb9 Fixed typo in instruction table and added END directive
lost
parents: 53
diff changeset
369 { "zmb", { -1, -1, -1, -1 }, pseudo_zmb },
360d53062bb9 Fixed typo in instruction table and added END directive
lost
parents: 53
diff changeset
370 { "zmd", { -1, -1, -1, -1 }, pseudo_zmd },
360d53062bb9 Fixed typo in instruction table and added END directive
lost
parents: 53
diff changeset
371 { "zmq", { -1, -1, -1, -1 }, pseudo_zmq },
360d53062bb9 Fixed typo in instruction table and added END directive
lost
parents: 53
diff changeset
372
56
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
373 { "fcc", { -1, -1, -1, -1 }, pseudo_fcc },
70
8aa6a28cba02 Fixed instruction table to vector to correct routines for fcn and fcs
lost
parents: 67
diff changeset
374 { "fcn", { -1, -1, -1, -1 }, pseudo_fcn },
8aa6a28cba02 Fixed instruction table to vector to correct routines for fcn and fcs
lost
parents: 67
diff changeset
375 { "fcs", { -1, -1, -1, -1 }, pseudo_fcs },
56
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
376
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
377 { "fcb", { -1, -1, -1, -1 }, pseudo_fcb },
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
378 { "fdb", { -1, -1, -1, -1 }, pseudo_fdb },
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
379 { "fqb", { -1, -1, -1, -1 }, pseudo_fqb },
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
380
54
360d53062bb9 Fixed typo in instruction table and added END directive
lost
parents: 53
diff changeset
381 { "end", { -1, -1, -1, -1 }, pseudo_end },
50
e672232caffe Added rmb pseudo op
lost
parents: 47
diff changeset
382
225
058f18119025 Fixed filename parsing bug in include directive and added includebin directive
lost
parents: 212
diff changeset
383 { "includebin", { -1, -1, -1, -1}, pseudo_includebin },
52
b9856da2674a Added file inclusion
lost
parents: 50
diff changeset
384 { "include", { -1, -1, -1, -1 }, pseudo_include },
236
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
385 { "use", { -1, -1, -1, -1 }, pseudo_include },
56
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
386
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
387 { "align", { -1, -1, -1, -1 }, pseudo_align },
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
388
55260a178667 Added from f* pseudo ops
lost
parents: 54
diff changeset
389 { "error", { -1, -1, -1, -1}, pseudo_error },
52
b9856da2674a Added file inclusion
lost
parents: 50
diff changeset
390
236
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
391 // these are *dangerous*
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
392 { "ifp1", { -1, -1, -1, -1}, pseudo_ifp1, 1 },
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
393 { "ifp2", { -1, -1, -1, -1}, pseudo_ifp2, 1 },
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
394
57
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
395 { "ifeq", { -1, -1, -1, -1}, pseudo_ifeq, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
396 { "ifne", { -1, -1, -1, -1}, pseudo_ifne, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
397 { "if", { -1, -1, -1, -1}, pseudo_ifne, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
398 { "ifgt", { -1, -1, -1, -1}, pseudo_ifgt, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
399 { "ifge", { -1, -1, -1, -1}, pseudo_ifge, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
400 { "iflt", { -1, -1, -1, -1}, pseudo_iflt, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
401 { "ifle", { -1, -1, -1, -1}, pseudo_ifle, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
402 { "endc", { -1, -1, -1, -1}, pseudo_endc, 1 },
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
403 { "else", { -1, -1, -1, -1}, pseudo_else, 1 },
104
2ba8f9ef1417 Added ifdef/ifndef conditionals
lost
parents: 90
diff changeset
404 { "ifdef", { -1, -1, -1, -1}, pseudo_ifdef, 1},
2ba8f9ef1417 Added ifdef/ifndef conditionals
lost
parents: 90
diff changeset
405 { "ifndef", { -1, -1, -1, -1}, pseudo_ifndef, 1},
57
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
406
67
d5fe306f1ab1 Fixed numerous bugs in macro handling
lost
parents: 65
diff changeset
407 { "macro", { -1, -1, -1, -1}, pseudo_macro, 1, 0, 1 },
d5fe306f1ab1 Fixed numerous bugs in macro handling
lost
parents: 65
diff changeset
408 { "endm", { -1, -1, -1, -1}, pseudo_endm, 1, 1, 1 },
57
035b95a3690f Added conditional assembly and macros
lost
parents: 56
diff changeset
409
254
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
410 { "struct", { -1, -1, -1, -1}, pseudo_struct, 0, 0, 0 },
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
411 { "ends", { -1, -1, -1, -1}, pseudo_endstruct, 0, 0, 0, 0, 1},
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
412 { "endstruct", { -1, -1, -1, -1}, pseudo_endstruct, 0, 0, 0, 0, 1 },
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
413
65
31d8e85706e7 Implemented setdp and corrected handling of direct page detection in insn_gen_aux()
lost
parents: 63
diff changeset
414 { "setdp", { -1, -1, -1, -1}, pseudo_setdp },
63
d85ba47b1e8f Moved symbol registration so symbols that are in skipped code do not get registered and so EQU/SET can do their own registration
lost
parents: 57
diff changeset
415 { "set", { -1, -1, -1, -1}, pseudo_set, 0, 0, 1 },
d85ba47b1e8f Moved symbol registration so symbols that are in skipped code do not get registered and so EQU/SET can do their own registration
lost
parents: 57
diff changeset
416
73
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
417 { "section", { -1, -1, -1, -1}, pseudo_section },
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
418 { "sect", { -1, -1, -1, -1}, pseudo_section },
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
419 { "ends", { -1, -1, -1, -1}, pseudo_endsection },
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
420 { "endsect", { -1, -1, -1, -1}, pseudo_endsection },
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
421 { "endsection", { -1, -1, -1, -1}, pseudo_endsection },
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
422
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
423 { "pragma", { -1, -1, -1, -1}, pseudo_pragma },
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
424 { "*pragma", { -1, -1, -1, -1}, pseudo_starpragma },
236
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
425
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
426 // for os9 target
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
427 { "os9", { -1, -1, -1, -1 }, pseudo_os9 },
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
428 { "mod", { -1, -1, -1, -1 }, pseudo_mod },
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
429 { "emod", { -1, -1, -1, -1 }, pseudo_emod },
158
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
430
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
431 /* for compatibility with gcc6809 output... */
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
432 { ".area", { -1, -1, -1, -1}, pseudo_section },
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
433 { ".globl", { -1, -1, -1, -1}, pseudo_export },
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
434 { ".module", { -1, -1, -1, -1}, pseudo_noop },
73
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
435
160
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
436 { ".4byte", { -1, -1, -1, -1}, pseudo_fqb },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
437 { ".quad", { -1, -1, -1, -1}, pseudo_fqb },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
438
158
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
439 { ".word", { -1, -1, -1, -1}, pseudo_fdb },
160
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
440 { ".dw", { -1, -1, -1, -1}, pseudo_fdb },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
441
158
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
442 { ".byte", { -1, -1, -1, -1}, pseudo_fcb },
160
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
443 { ".db", { -1, -1, -1, -1}, pseudo_fcb },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
444
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
445 { ".ascii", { -1, -1, -1, -1}, pseudo_fcc },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
446 { ".str", { -1, -1, -1, -1}, pseudo_fcc },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
447
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
448 { ".ascis", { -1, -1, -1, -1}, pseudo_fcs },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
449 { ".strs", { -1, -1, -1, -1}, pseudo_fcs },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
450
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
451 { ".asciz", { -1, -1, -1, -1}, pseudo_fcn },
b061350c17e4 Added cescapes pragma and a few other compatibility pseudo ops
lost
parents: 158
diff changeset
452 { ".strz", { -1, -1, -1, -1}, pseudo_fcn },
158
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
453
254
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
454 { ".blkb", { -1, -1, -1, -1}, pseudo_rmb, 0, 0, 0, 0, 1 },
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
455 { ".ds", { -1, -1, -1, -1}, pseudo_rmb, 0, 0, 0, 0, 1 },
c7a41b4c89b3 Added struct support to LWASM
lost
parents: 250
diff changeset
456 { ".rs", { -1, -1, -1, -1}, pseudo_rmb, 0, 0, 0, 0, 1 },
158
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
457
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
458 // needs to handle C escapes maybe?
f0527dc3804d Added support for .globl <sym>, .area <section>, .word, .byte, .blkb, and a .module directive that does nothing
lost
parents: 151
diff changeset
459 // { ".ascii", { -1, -1, -1, -1}, pseudo_ascii },
73
4b37f17624a7 Added pragma directives
lost
parents: 70
diff changeset
460
197
12fb4e8d5236 Add .end as synonym for end
lost
parents: 160
diff changeset
461 // for compatibility
12fb4e8d5236 Add .end as synonym for end
lost
parents: 160
diff changeset
462 { ".end", { -1, -1, -1, -1 }, pseudo_end },
236
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
463
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
464 // extra ops that are ignored because they are generally only for
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
465 // pretty printing the listing
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
466 { "nam", { -1, -1, -1, -1 }, pseudo_noop },
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
467 { "pag", { -1, -1, -1, -1 }, pseudo_noop },
a58f49a77441 Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
lost
parents: 234
diff changeset
468 { "ttl", { -1, -1, -1, -1 }, pseudo_noop },
197
12fb4e8d5236 Add .end as synonym for end
lost
parents: 160
diff changeset
469
250
0986834ec7d3 Added no-op .bank pseudo-op to support compiling gcc6809
lost
parents: 243
diff changeset
470 // placeholder since lwasm doesn't support banks (yet)
0986834ec7d3 Added no-op .bank pseudo-op to support compiling gcc6809
lost
parents: 243
diff changeset
471 { ".bank", { -1, -1, -1, -1 }, pseudo_noop},
0986834ec7d3 Added no-op .bank pseudo-op to support compiling gcc6809
lost
parents: 243
diff changeset
472
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
473 /* flag end of table */
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 4
diff changeset
474 { NULL, { -0x1, -0x1, -0x1, -0x1 }, insn_inh }
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
475 };