2 mcs51 specific general functions.
4 Note that mlh prepended _mcs51_ on the static functions. Makes
5 it easier to set a breakpoint using the debugger.
11 /* list of key words used by msc51 */
12 static char *_mcs51_keywords[] = {
39 void mcs51_assignRegisters (eBBlock **ebbs, int count);
41 static bool _mcs51_parseOptions(int *pargc, char **argv)
46 static void _mcs51_finaliseOptions(void)
50 static void _mcs51_setDefaultOptions(void)
54 static const char *_mcs51_getRegName(struct regs *reg)
61 /** $1 is always the basename.
62 $2 is always the output file.
64 $l is the list of extra options that should be there somewhere...
65 MUST be terminated with a NULL.
67 static const char *_linkCmd[] = {
68 "aslink", "-nf", "$1", NULL
71 static const char *_asmCmd[] = {
72 "asx8051", "-plosgffc", "$1.asm", NULL
78 "MCU 8051", /* Target name */
81 "-plosgffc", /* Options with debug */
82 "-plosgff", /* Options without debug */
88 /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
89 1, 1, 2, 4, 1, 2, 3, 1, 4, 4
106 /* mcs51 has an 8 bit mul */
111 _mcs51_finaliseOptions,
112 _mcs51_setDefaultOptions,
113 mcs51_assignRegisters,