Search
lxdream.org :: lxdream/src/sh4/sh4dasm.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4dasm.in
changeset 569:a1c49e1e8776
prev561:533f6b478071
next1065:bc1cc0c54917
author nkeynes
date Fri Jan 04 11:54:17 2008 +0000 (13 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Bring icache partially into line with the mmu, a little less slow with AT off
now.
file annotate diff log raw
1.1 --- a/src/sh4/sh4dasm.in Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/sh4/sh4dasm.in Fri Jan 04 11:54:17 2008 +0000
1.3 @@ -285,19 +285,16 @@
1.4 }
1.5
1.6
1.7 -void sh4_disasm_region( const gchar *filename, int from, int to )
1.8 +void sh4_disasm_region( FILE *f, int from, int to )
1.9 {
1.10 int pc;
1.11 char buf[80];
1.12 char opcode[16];
1.13 - FILE *f;
1.14
1.15 - f = fopen( filename, "w" );
1.16 for( pc = from; pc < to; pc+=2 ) {
1.17 buf[0] = '\0';
1.18 sh4_disasm_instruction( pc,
1.19 buf, sizeof(buf), opcode );
1.20 fprintf( f, " %08x: %s %s\n", pc, opcode, buf );
1.21 }
1.22 - fclose(f);
1.23 }
.