2 * Simulator of microcontrollers (glob.h)
4 * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
6 * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7 * Other contributors include:
8 * Karl Bongers karl@turbobit.com,
9 * Johan Knol johan.knol@iduna.nl
13 /* This file is part of microcontroller simulator: ucsim.
15 UCSIM is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
20 UCSIM is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with UCSIM; see the file COPYING. If not, write to the Free
27 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
36 /* this needs to match char *op_mnemonic_str[] definition in glob.cc */
116 extern char *op_mnemonic_str[];
118 /* this classifies the operands and is used in the dissassembly
119 to print the operands. Its also used in the simulation to characterize
120 the op-code function.
123 // the repeating parameter encoding for ADD, ADDC, SUB, SUBB, AND, XOR, ...
149 NO_OPERANDS, // for NOP
193 // table of dissassembled instructions
196 uint is1byte; /* only grab 1 byte for table lookup(most are 2 bytes) */
197 uint code; /* bits in opcode used to match table entry(with mask) */
198 uint mask; /* mask used on .code to match up a common opcode */
199 char branch; /* used by main app to implement "next" around calls */
200 uchar length; /* total length of opcode, used by dissasembler and main app */
201 int mnemonic; /* type of opcode(ADD, ADDC...) */
202 int operands; /* unique classification of operands: Rd,Rs = REG_REG,... */
205 extern struct dis_entry glob_disass_xa[];
207 extern struct xa_dis_entry disass_xa[];
209 extern struct name_entry sfr_tabXA51[];
210 extern struct name_entry bit_tabXA51[];
213 /* End of xa.src/glob.h */