69 cfgline2(
"%s: load = MAIN, type = ro, optional = yes, start = $%4.4x;", actual->
name, actual->
address);
73 FILE * file = fopen(actual->
filename,
"rb" );
75 fprintf(stderr,
"Compiler error: unable to open file %s\n", actual->
filename);
85 while( !feof( file ) ) {
86 if ( ( b % 8 ) == 0 ) {
90 unsigned char data = fgetc(file);
91 out1(
"$%2.2x", ( data & 0xff ) );
92 if ( ( ( b % 8 ) != 7 ) ) {
101 actual = actual->
next;
int check_if_filename_is_valid(Environment *_environment, char *_filename)
char BANK_TYPE_AS_STRING[][16]
Description of BANK TYPE, in readable format.
void bank_cleanup(Environment *_environment)
Emit source and configuration lines for banks.
Bank * banks[BANK_TYPE_COUNT]
#define BANK_TYPE_COUNT
Maximum number of bank types.
#define outline3(s, a, b, c)
struct _Environment Environment
Structure of compilation environment.
#define cfgline2(s, a, b)
struct _Bank Bank
Structure of a single bank.
#define outline4(s, a, b, c, d)