move operator-to-string conversion to unit.c
[xorcyst.git] / opcode.h
blobe1d5e6dc84e7ca9d17fd0d3c0d873a8d629f0749
1 /*
2 * $Id: opcode.h,v 1.2 2007/07/22 13:35:20 khansen Exp $
3 * $Log: opcode.h,v $
4 * Revision 1.2 2007/07/22 13:35:20 khansen
5 * convert tabs to whitespaces
7 * Revision 1.1 2004/06/30 07:56:38 kenth
8 * Initial revision
12 /**
13 * (C) 2004 Kent Hansen
15 * The XORcyst 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 * The XORcyst 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 The XORcyst; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #ifndef OPCODE_H
31 #define OPCODE_H
33 #include <stdio.h>
34 #include "astnode.h"
36 /* Function prototypes. */
38 unsigned char opcode_get(instr_mnemonic, addressing_mode);
39 int opcode_length(unsigned char);
40 unsigned char opcode_zp_equiv(unsigned char);
41 const char *opcode_to_string(unsigned char);
42 addressing_mode opcode_addressing_mode(unsigned char);
44 #endif /* !OPCODE_H */