annotate lwasm/insn_inh.c @ 232:1009f302ac11

Documented the "Flags" term for object files
author lost
date Fri, 12 Jun 2009 04:17:22 +0000
parents 2e5a32d56e60
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
1 /*
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
2 insn_inh.c
33
74a3fef7c8d0 Added general addressing modes (immediate, base page, extended, indexed)
lost
parents: 27
diff changeset
3 Copyright © 2009 William Astle
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
4
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
5 This file is part of LWASM.
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
6
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
7 LWASM is free software: you can redistribute it and/or modify it under the
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
8 terms of the GNU General Public License as published by the Free Software
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
9 Foundation, either version 3 of the License, or (at your option) any later
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
10 version.
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
11
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
12 This program is distributed in the hope that it will be useful, but WITHOUT
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
15 more details.
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
16
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
17 You should have received a copy of the GNU General Public License along with
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
18 this program. If not, see <http://www.gnu.org/licenses/>.
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
19 */
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
20
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
21 /*
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
22 for handling inherent mode instructions
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
23 */
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
24
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
25 #define __insn_inh_c_seen__
212
bae1e3ecdce1 More preparation for gnulib integration
lost
parents: 151
diff changeset
26 #include <config.h>
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
28 #include "lwasm.h"
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
29 #include "instab.h"
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
30
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
31 OPFUNC(insn_inh)
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
32 {
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
33 lwasm_emitop(as, l, instab[opnum].ops[0]);
224
2e5a32d56e60 Fixed error with fix for bad operands
lost
parents: 212
diff changeset
34 // skip to end of line
2e5a32d56e60 Fixed error with fix for bad operands
lost
parents: 212
diff changeset
35 for (; **p; (*p)++)
2e5a32d56e60 Fixed error with fix for bad operands
lost
parents: 212
diff changeset
36 /* do nothing */ ;
27
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
37 }