3 static char _defaultRules[] =
10 static char *_z80_keywords[] = { NULL };
12 static void _z80_init(void)
14 z80_opts.sub = SUB_Z80;
17 static bool _z80_parseOptions(int *pargc, char **argv, int *i)
22 static void _z80_finaliseOptions(void)
26 static void _z80_setDefaultOptions(void)
28 options.genericPtr = 1; /* default on */
30 options.stackAuto = 1;
31 options.mainreturn = 1;
32 options.noregparms = 1;
33 /* first the options part */
34 options.intlong_rent = 1;
36 optimize.global_cse = 1;
41 optimize.loopInvariant = 1;
42 optimize.loopInduction = 0;
45 static const char *_z80_getRegName(struct regs *reg)
53 /** $1 is always the basename.
54 $2 is always the output file.
56 $l is the list of extra options that should be there somewhere...
57 MUST be terminated with a NULL.
59 static const char *_linkCmd[] = {
60 "link-z80", "-nf", "$1", NULL
63 static const char *_asmCmd[] = {
64 "as-z80", "-plosgff", "$1.o", "$1.asm", NULL
70 "Zilog Z80", /* Target name */
76 "-plosgff", /* Options with debug */
77 "-plosgff", /* Options without debug */
86 /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
87 1, 1, 2, 4, 2, 2, 2, 1, 4, 4
105 /* Z80 has no native mul/div commands */
111 _z80_finaliseOptions,
112 _z80_setDefaultOptions,
116 0, /* no assembler preamble */
117 0, /* no local IVT generation code */