3 static char _defaultRules[] =
6 #include "peeph-z80.rul"
11 static char *_z80_keywords[] = { NULL };
13 static void _z80_init(void)
15 z80_opts.sub = SUB_Z80;
18 static bool _z80_parseOptions(int *pargc, char **argv, int *i)
23 static void _z80_finaliseOptions(void)
27 static void _z80_setDefaultOptions(void)
29 options.genericPtr = 1; /* default on */
31 options.stackAuto = 1;
32 options.mainreturn = 1;
33 options.noregparms = 1;
34 /* first the options part */
35 options.intlong_rent = 1;
37 optimize.global_cse = 1;
42 optimize.loopInvariant = 1;
43 optimize.loopInduction = 0;
46 static const char *_z80_getRegName(struct regs *reg)
54 /** $1 is always the basename.
55 $2 is always the output file.
57 $l is the list of extra options that should be there somewhere...
58 MUST be terminated with a NULL.
60 static const char *_linkCmd[] = {
61 "link-z80", "-nf", "$1", NULL
64 static const char *_asmCmd[] = {
65 "as-z80", "-plosgff", "$1.o", "$1.asm", NULL
71 "Zilog Z80", /* Target name */
77 "-plosgff", /* Options with debug */
78 "-plosgff", /* Options without debug */
87 /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
88 1, 1, 2, 4, 2, 2, 2, 1, 4, 4
106 /* Z80 has no native mul/div commands */
112 _z80_finaliseOptions,
113 _z80_setDefaultOptions,
117 0, /* no assembler preamble */
118 0, /* no local IVT generation code */