annotate lwasm/instab.h @ 276:23034db7dd8a 2.5

fixed expression 'slots' to not store null on a pass 1 store
author lost
date Mon, 31 Aug 2009 08:39:36 +0000
parents 0df2a39a268c
children c7a41b4c89b3
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.h
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 definitions for the instruction table
34568fab6058 Fixed package to include all required files; also added copyright preamble to all source files
lost
parents: 0
diff changeset
22 */
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
23
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 13
diff changeset
24 #ifndef __instab_h_seen__
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 13
diff changeset
25 #define __instab_h_seen__
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 13
diff changeset
26
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 13
diff changeset
27 #include "lwasm.h"
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 13
diff changeset
28
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
29 typedef struct
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
30 {
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
31 char *opcode; /* the mneumonic */
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
32 int ops[4]; /* opcode values for up to four addr modes */
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents: 25
diff changeset
33 void (*fn)(asmstate_t *as, lwasm_line_t *l, char **optr, int opnum);
57
035b95a3690f Added conditional assembly and macros
lost
parents: 27
diff changeset
34 int iscond; /* set if this should be dispatched even if skipping a condition/macro */
035b95a3690f Added conditional assembly and macros
lost
parents: 27
diff changeset
35 int endm; /* end of macro? */
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
36 int setsym; /* does this set a symbol address? EQU, SET */
230
0df2a39a268c Added --6809/--6309 switches and some cleanups in error reporting
lost
parents: 151
diff changeset
37 int is6309; /* is this 6309 only? */
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
38 } instab_t;
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
39
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents: 25
diff changeset
40 #define OPFUNC(fn) void (fn)(asmstate_t *as, lwasm_line_t *l, char **p, int opnum)
25
3b818f05dc2a imported instruction table from older version to development version
lost
parents: 13
diff changeset
41
0
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
42 #ifndef __instab_c_seen__
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
43 extern instab_t instab[];
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
44 #endif //__instab_c_seen__
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
45
57495da01900 Initial checking of LWASM
lost
parents:
diff changeset
46 #endif //__instab_h_seen__