64 p = strstr( binaryName,
".asm" );
76 p = strstr( binaryName,
".asm" );
84 p = strstr( binaryName,
".asm" );
88 strcat( p,
"_code_user.bin");
91 FILE * binaryFile = fopen( binaryName,
"rb" );
92 fseek( binaryFile, 0, SEEK_END );
93 long size = ftell( binaryFile );
94 fseek( binaryFile, 0, SEEK_SET );
96 (void)!fread( part,
size, 1, binaryFile );
100 p = strstr( binaryName,
".asm" );
107 binaryFile = fopen( binaryName,
"wb" );
108 fwrite( part,
size, 1, binaryFile );
109 fclose( binaryFile );
112 p = strstr( binaryName,
".asm" );
116 strcat( p,
"_data_user.bin");
119 binaryFile = fopen( binaryName,
"rb" );
120 fseek( binaryFile, 0, SEEK_END );
121 size = ftell( binaryFile );
122 fseek( binaryFile, 0, SEEK_SET );
124 (void)!fread( part,
size, 1, binaryFile );
125 fclose( binaryFile );
128 p = strstr( binaryName,
".asm" );
135 binaryFile = fopen( binaryName,
"a+b" );
136 fwrite( part,
size, 1, binaryFile );
137 fclose( binaryFile );
146 strcopy( pipes,
">/dev/null 2>/dev/null");
149 sprintf( commandLine,
"\"%s\" +msxrom -b \"%s\" %s",
154 p = strstr( binaryName,
".bin" );
162 printf(
"The compilation of assembly program failed.\n\n");
163 printf(
"Please use option '-I' to install chain tool.\n\n");
173 p = strstr( binaryName,
".asm" );
185 }
else if( access(
"runz80.exe", F_OK ) == 0 ) {
186 sprintf(executableName,
"%s",
"runz80.exe" );
188 sprintf(executableName,
"%s",
"runz80" );
191 sprintf( commandLine,
"\"%s\" -c -p \"%s\" %d -l 8000 \"%s\" -R 8075 -u \"%s\" \"%s\"",
200 printf(
"The profiling of assembly program failed.\n\n");
209 p = strstr( binaryName,
".asm" );
211 strcat( p,
"_data_user.bin");
216 p = strstr( binaryName,
".asm" );
218 strcat( p,
"_code_user.bin");