4 static char *_z80_keywords[] = { NULL };
6 void z80_assignRegisters (eBBlock **ebbs, int count);
8 static bool _z80_parseOptions(int *pargc, char **argv)
13 static void _z80_finaliseOptions(void)
17 static void _z80_setDefaultOptions(void)
19 options.genericPtr = 1; /* default on */
21 options.stackAuto = 1;
22 options.mainreturn = 1;
23 options.noregparms = 1;
24 /* first the options part */
25 options.intlong_rent = 1;
27 optimize.global_cse = 1;
32 optimize.loopInvariant = 1;
33 optimize.loopInduction = 0;
36 static const char *_z80_getRegName(struct regs *reg)
44 /** $1 is always the basename.
45 $2 is always the output file.
47 $l is the list of extra options that should be there somewhere...
48 MUST be terminated with a NULL.
50 static const char *_linkCmd[] = {
51 "link-z80", "-nf", "$1", NULL
54 static const char *_asmCmd[] = {
55 "as-z80", "-plosgff", "$1.o", "$1.asm", NULL
61 "Zilog Z80", /* Target name */
64 "-plosgff", /* Options with debug */
65 "-plosgff", /* Options without debug */
71 /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
72 1, 1, 2, 4, 2, 2, 2, 1, 4, 4
89 /* Z80 has no native mul/div commands */
95 _z80_setDefaultOptions,