* device/lib/pic16/libsdcc/Makefile: added lregs directory in
[fw/sdcc] / src / pic16 / genutils.h
1
2 /*
3 ** $Id$
4 */
5
6 #ifndef __GENUTILS_H__
7 #define __GENUTILS_H__
8
9
10 #include "common.h"
11
12
13 /*
14  * The various GEN_xxxxx macros handle which functions
15  * should be included in the gen.c source. We are going to use
16  * our own functions here so, they must be commented out from
17  * gen.c
18  */
19
20 #define GEN_Not
21 void pic16_genNot(iCode *ic);
22
23 #define GEN_Cpl
24 void pic16_genCpl(iCode *ic);
25
26
27 /*
28  * global function definitions
29  */
30 void pic16_DumpValue(char *prefix, value *val);
31 void pic16_DumpPcodeOp(char *prefix, pCodeOp *pcop);
32 void pic16_DumpAop(char *prefix, asmop *aop);
33 void pic16_DumpSymbol(char *prefix, symbol *sym);
34 void pic16_DumpOp(char *prefix, operand *op);
35
36 void gpsimio2_pcop(pCodeOp *pcop);
37 void gpsimio2_lit(unsigned char lit);
38
39 void gpsimDebug_StackDump(char *fname, int line, char *info);
40
41 #define debugf(frm, rest)       _debugf(__FILE__, __LINE__, frm, rest)
42 void _debugf(char *f, int l, char *frm, ...);
43
44 #endif  /* __GENUTILS_H__ */