annotate src/insn_inh.c @ 229:59a138df0401

Fixed additional parsing problems with pseudo ops
author lost
date Fri, 12 Jun 2009 01:31:18 +0000
parents 74a3fef7c8d0
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__
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
26
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
27 #include "lwasm.h"
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
28 #include "instab.h"
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
29
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
30 OPFUNC(insn_inh)
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
31 {
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
32 lwasm_emitop(as, l, instab[opnum].ops[0]);
f736579569b4 Added handlers for inherent and register to register instructions
lost
parents:
diff changeset
33 }