1.1 --- a/src/sh4/sh4dasm.c Mon Dec 26 11:47:15 2005 +0000
1.2 +++ b/src/sh4/sh4dasm.c Sun Jan 01 08:08:40 2006 +0000
1.5 - * $Id: sh4dasm.c,v 1.8 2005-12-26 11:47:15 nkeynes Exp $
1.6 + * $Id: sh4dasm.c,v 1.9 2006-01-01 08:08:40 nkeynes Exp $
1.8 * SH4 CPU definition and disassembly functions
1.10 @@ -380,16 +380,19 @@
1.14 -void sh4_disasm_region( FILE *f, int from, int to, int load_addr )
1.15 +void sh4_disasm_region( const gchar *filename, int from, int to )
1.22 + f = fopen( filename, "w" );
1.23 for( pc = from; pc < to; pc+=2 ) {
1.25 sh4_disasm_instruction( pc,
1.26 buf, sizeof(buf), opcode );
1.27 - fprintf( f, " %08x: %s %s\n", pc + load_addr, opcode, buf );
1.28 + fprintf( f, " %08x: %s %s\n", pc, opcode, buf );