65 p = strstr( relName1,
".asm" );
74 p = strstr( relName2,
".ram" );
87 p = strstr( binaryName,
".ram" );
104 strcopy( pipes,
">/dev/null 2>/dev/null");
107 sprintf( commandLine,
"\"%s\" \"-t+%s\" -t \"%s\" %s",
113 printf(
"The compilation of assembly program failed.\n\n");
114 printf(
"Please use option '-I' to install chain tool.\n\n");
127 char * p = strstr( binaryName,
".ram" );
137 FILE * fin = fopen( binaryName,
"rb" );
138 FILE * fout = fopen( _environment->
exeFileName,
"wb" );
140 while( !feof( fin ) ) {
142 int header = (int)fgetc(fin);
143 int size = (((int)fgetc(fin))<<8) + (((
int)fgetc(fin)));
144 int address = (((int)fgetc(fin))<<8) + (((
int)fgetc(fin)));
148 memset( content, 0,
size );
149 if ( ! fread( content, 1,
size, fin ) ) {
150 perror(
"Unable to read segment");
152 fwrite( content, 1,
size, fout );
int system_call(Environment *_environment, char *_commandline)
Call an external executable.
void target_linkage(Environment *_environment)
Convert C64's assembly to executable.
void target_cleanup(Environment *_environment)
void target_analysis(Environment *_environment)
void generate_bin(Environment *_environment)
void generate_ram(Environment *_environment)
char * configurationFileName
OutputFileType outputFileType
#define BUILD_SAFE_REMOVE(_environment, filename)
#define MAX_TEMPORARY_STORAGE
#define BUILD_TOOLCHAIN_ASXV5PXX_EXEC(_environment, target, executableName)
#define BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_ASLINK(_environment, executableName)
struct _Environment Environment
Structure of compilation environment.
#define BUILD_TOOLCHAIN_ASXV5PXX_GET_EXECUTABLE_AS61860(_environment, executableName)
#define BUILD_SAFE_MOVE(_environment, source, destination)
#define CRITICAL_UNSUPPORTED_OUTPUT_FILE_TYPE(t)
char OUTPUT_FILE_TYPE_AS_STRING[][16]
char * strcopy(char *_dest, char *_source)