| 1 | /* Assembler interface for targets using CGEN. -*- C -*-
|
|---|
| 2 | CGEN: Cpu tools GENerator
|
|---|
| 3 |
|
|---|
| 4 | THIS FILE IS MACHINE GENERATED WITH CGEN.
|
|---|
| 5 | - the resultant file is machine generated, cgen-asm.in isn't
|
|---|
| 6 |
|
|---|
| 7 | Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
|---|
| 8 |
|
|---|
| 9 | This file is part of the GNU Binutils and GDB, the GNU debugger.
|
|---|
| 10 |
|
|---|
| 11 | This program is free software; you can redistribute it and/or modify
|
|---|
| 12 | it under the terms of the GNU General Public License as published by
|
|---|
| 13 | the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 14 | any later version.
|
|---|
| 15 |
|
|---|
| 16 | This program is distributed in the hope that it will be useful,
|
|---|
| 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 19 | GNU General Public License for more details.
|
|---|
| 20 |
|
|---|
| 21 | You should have received a copy of the GNU General Public License
|
|---|
| 22 | along with this program; if not, write to the Free Software Foundation, Inc.,
|
|---|
| 23 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|---|
| 24 |
|
|---|
| 25 | /* ??? Eventually more and more of this stuff can go to cpu-independent files.
|
|---|
| 26 | Keep that in mind. */
|
|---|
| 27 |
|
|---|
| 28 | #include "sysdep.h"
|
|---|
| 29 | #include <stdio.h>
|
|---|
| 30 | #include "ansidecl.h"
|
|---|
| 31 | #include "bfd.h"
|
|---|
| 32 | #include "symcat.h"
|
|---|
| 33 | #include "xstormy16-desc.h"
|
|---|
| 34 | #include "xstormy16-opc.h"
|
|---|
| 35 | #include "opintl.h"
|
|---|
| 36 | #include "xregex.h"
|
|---|
| 37 | #include "libiberty.h"
|
|---|
| 38 | #include "safe-ctype.h"
|
|---|
| 39 |
|
|---|
| 40 | #undef min
|
|---|
| 41 | #define min(a,b) ((a) < (b) ? (a) : (b))
|
|---|
| 42 | #undef max
|
|---|
| 43 | #define max(a,b) ((a) > (b) ? (a) : (b))
|
|---|
| 44 |
|
|---|
| 45 | static const char * parse_insn_normal
|
|---|
| 46 | PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *, const char **, CGEN_FIELDS *));
|
|---|
| 47 | |
|---|
| 48 |
|
|---|
| 49 | /* -- assembler routines inserted here. */
|
|---|
| 50 |
|
|---|
| 51 | /* -- asm.c */
|
|---|
| 52 | static const char * parse_mem8
|
|---|
| 53 | PARAMS ((CGEN_CPU_DESC, const char **, int, unsigned long *));
|
|---|
| 54 | static const char * parse_small_immediate
|
|---|
|
|---|