-/** $1 is always the basename.
- $2 is always the output file.
- $3 varies
- $l is the list of extra options that should be there somewhere...
- MUST be terminated with a NULL.
-*/
-static const char *_z80_asmCmd[] =
-{
- "as-z80",
- "-plosgff",
- "$1.o",
- "$1.asm",
- NULL
-};
-
-static const char *_z80_linkCmd[] =
-{
- "link-z80",
- "-n", // Don't echo output
- "-c", // Command line input
- "--", // Again, command line input...
- "-b_CODE=0x200", // Code starts at 0x200
- "-b_DATA=0x8000", // RAM starts at 0x8000
- "-j", // Output a symbol file as well
- "-k" SDCC_LIB_DIR "/z80", // Library path
- "-lz80.lib", // Library to use
- "-i", // Output Intel IHX
- "$1.ihx", // Output to
- SDCC_LIB_DIR "/z80/crt0.o", // Link in crt0 first
- "$1.o", // Actual code
- NULL
-};
-
-static const char *_gbz80_asmCmd[] =
-{
- "as-gbz80",
- "-plosgff",
- "$1.o",
- "$1.asm",
- NULL
-};
-
-static const char *_gbz80_linkCmd[] =
-{
- "link-z80",
- "-n", // Don't echo output
- "-c", // Command line input
- "--", // Again, command line input...
- "-b_CODE=0x200", // Code starts at 0x200
- "-b_DATA=0xC000", // RAM starts at 0xC000
- "-j", // Output a symbol file as well
- "-k" SDCC_LIB_DIR "/gbz80", // Library path
- "-lgbz80.lib", // Library to use
- "-z", // Output Gameboy image
- "$1.gb", // Output to
- SDCC_LIB_DIR "/gbz80/crt0.o",// Link in crt0 first
- "$1.o", // Actual code
- NULL
-};
-
-/* sprintf that appends to the string. */
-static void
-_saprintf(char *pinto, const char *format, ...)