gehe zum Quellcode dieser Datei
#define declstruct |
( |
|
name) | |
typedef struct name s##name, * p##name |
#define defequiv |
( |
|
new, |
|
|
|
old |
|
) |
| typedef struct old s##new, * p##new |
#define defstruct |
( |
|
name) | |
struct name |
#define disopt_CommaSpace 0x002 /* put spaces after commas */ |
#define disopt_comment_lines 0x800 |
#define disopt_exclude_dcd 0x040 |
#define disopt_FIXS 0x004 /* bogus FIX syntax for ObjAsm */ |
#define disopt_indent_mneumonics_mode 0x010 /* indent mneumonics additionally */ |
#define disopt_line_numbers 0x1000 |
#define disopt_nullsub_call 0x080 |
#define disopt_patch_branch 0x100 |
#define disopt_patch_comment 0x020 |
#define disopt_patch_value 0x200 |
#define disopt_print_address_mode 0x008 /* output in plain mode - no address comments */ |
#define disopt_remember_branches 0x400 |
#define disopt_SWInames 0x001 /* use names, not &nnnn */ |
declstruct |
( |
DisOptions |
) | |
|
Definiert in Zeile 1328 der Datei chdk_dasm.c.
1332 int dcd_mode_on = 0;
1338 while (word_count < length )
1346 fprintf(outfile,
"\n\"loc_%08X:\\n\"\n",
addr);
1350 if ( lptr || dcd_mode_on )
1353 fprintf(outfile,
"\"dword_%8.8X DCD 0x%X \\n\"\n",
addr , w);
1372 if (instr->undefined || instr->badbits || instr->oddbits) {
1373 fprintf(outfile,
"Error: ");
1374 if (instr->undefined) fprintf(outfile,
"[---undefined instr---] 0x%8.8X ", w);
1375 if (instr->badbits) fprintf(outfile,
"[---illegal bits---] 0x%8.8X ", w);
1376 if (instr->oddbits) fprintf(outfile,
"[---unexpected bits---] 0x%8.8X ", w);
1377 if ( !((instr->undefined) || (instr->badbits) || (instr->oddbits)) )
1378 fprintf(outfile,
"[---unknown error---] 0x%8.8X ", w);
1381 fprintf(outfile,
"// rom:%.8x 0x%8.8X \n",
addr, w);
1383 else fprintf(outfile,
"\n");
1387 strcat( instr->text,
" \\n\"") ;
1389 char *indent =
"\" ";
1393 fprintf(outfile,
" ");
1396 fprintf(outfile,
"%s%-40s // rom:%.8x 0x%8.8X", indent, instr->text,
addr, w);
1398 else fprintf(outfile,
"%s%s", indent, instr->text);
1405 fprintf(outfile,
" // --> Patched. Old value = 0x%X.",
patch_old_val);
1419 fprintf(outfile,
" // --> Nullsub call removed.");
1421 fprintf(outfile,
"\n");
Definiert in Zeile 1283 der Datei chdk_dasm.c.
1294 for ( pass = 1 ; pass <=3 ; pass++ )
1299 while ( lptr !=
NULL )
1312 while (word_count < length )
Definiert in Zeile 1430 der Datei chdk_dasm.c.
1434 for (i=0; i<500; i++, start++)
1435 if ((
fwval(fw,start+1) & 0xFFFF4000) == 0xE92D4000)
1438 for (j=0; j<50; j++, start--)
1440 if ((
fwval(fw,start) & 0xFF000000) == 0xEA000000)
1444 if ((
fwval(fw,start) & 0xFFFF8000) == 0xE8BD8000)
1448 if ((
fwval(fw,start) & 0xFFFFFFF0) == 0xE12FFF10)
1452 if ((
fwval(fw,start) & 0xFFFFF000) == 0xE49DF000)
struct llist* branch_list |
int patch_ref_address[20] |
char patch_ref_name[20][256] |