/home/mandrake/rpm/BUILD/sc68-2.2.1/desa68/desa68.h

Go to the documentation of this file.
00001 
00011 /*
00012  *                        sc68 - 68000 disassembler
00013  *         Copyright (C) 2001-2003 Benjamin Gerard <ben@sashipa.com>
00014  *
00015  *  This program is free software; you can redistribute it and/or modify it
00016  *  under the terms of the GNU General Public License as published by the
00017  *  Free Software Foundation; either version 2 of the License, or (at your
00018  *  option) any later version.
00019  *
00020  *  This program is distributed in the hope that it will be useful, but
00021  *  WITHOUT ANY WARRANTY; without even the implied warranty of
00022  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  *  General Public License for more details.
00024  *
00025  *  You should have received a copy of the GNU General Public License along
00026  *  with this program; if not, write to the Free Software Foundation, Inc.,
00027  *  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00028  *
00029  */
00030 
00031 #ifndef _DESA68_H_
00032 #define _DESA68_H_
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00038 #ifndef EMU68DEBUG
00039 #define EMU68DEBUG
00040 #endif
00041 
00078 #define DESA68_SYMBOL_FLAG  (1<<0)
00079 
00092 #define DESA68_INST (1<<0)
00093 
00095 #define DESA68_BRA  (1<<1)
00096 
00098 #define DESA68_BSR  (1<<2)
00099 
00101 #define DESA68_RTS  (1<<3)
00102 
00104 #define DESA68_INT  (1<<4)
00105 
00107 #define DESA68_NOP  (1<<5) 
00108 
00127 typedef struct
00128 {
00129 
00137   unsigned char *mem;    
00138   unsigned int   memmsk; 
00142   unsigned int   pc;
00143   int            flags;  
00144   char          *str;    
00145   int            strmax; 
00151   unsigned int   immsym_min;
00156   unsigned int   immsym_max;
00157 
00168   unsigned int ea_src;
00170   unsigned int ea_dst; 
00172   unsigned int status;
00181   unsigned int branch;
00183   int w;                  
00185   char *s;
00186 
00196   int   reg0;
00197   int   reg9;
00198   int   mode3;
00199   int   mode6;
00200   int   opsz;
00201   int   line;
00202   int   adrmode0;
00203   int   adrmode6;
00204   int   szchar;
00205   unsigned int ea;
00206 
00209 } DESA68parm_t;
00210 
00211 
00216 void desa68(DESA68parm_t *d);
00217 
00222 #ifdef __cplusplus
00223 }
00224 #endif
00225 
00226 #endif /* #ifndef _DESA68_H_ */

Generated on Wed Jul 25 10:05:08 2007 for sc68fordevelopers by  doxygen 1.5.2