339
|
1 /*
|
|
2 insn_inh.c
|
|
3 Copyright © 2009 William Astle
|
|
4
|
|
5 This file is part of LWASM.
|
|
6
|
|
7 LWASM is free software: you can redistribute it and/or modify it under the
|
|
8 terms of the GNU General Public License as published by the Free Software
|
|
9 Foundation, either version 3 of the License, or (at your option) any later
|
|
10 version.
|
|
11
|
|
12 This program is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
15 more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License along with
|
|
18 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19 */
|
|
20
|
|
21 /*
|
|
22 for handling inherent mode instructions
|
|
23 */
|
|
24
|
|
25 #define __insn_inh_c_seen__
|
|
26 #include <config.h>
|
|
27
|
|
28 #include "lwasm.h"
|
|
29 #include "instab.h"
|
|
30
|
|
31 OPFUNC(insn_inh)
|
|
32 {
|
|
33 lwasm_emitop(as, l, instab[opnum].ops[0]);
|
|
34 // skip to end of line
|
|
35 for (; **p; (*p)++)
|
|
36 /* do nothing */ ;
|
|
37 }
|