filename | src/sh4/sh4dasm.c |
changeset | 586:2a3ba82cf243 |
prev | 496:5c5c98f3bdd5 |
next | 595:02d86b836ef0 |
author | nkeynes |
date | Thu Jan 17 10:11:37 2008 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Add flag to skip breakpoints when it's the very first instruction of a run (ie, so executing dreamcast_run() when the current pc is a breakpoint doesn't just return immediately) |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4dasm.c Wed Nov 07 11:46:58 2007 +00001.2 +++ b/src/sh4/sh4dasm.c Thu Jan 17 10:11:37 2008 +00001.3 @@ -1,5 +1,5 @@1.4 /**1.5 - * $Id: sh4dasm.c,v 1.13 2007-11-07 11:46:58 nkeynes Exp $1.6 + * $Id$1.7 *1.8 * SH4 CPU definition and disassembly functions1.9 *1.10 @@ -1550,19 +1550,16 @@1.11 }1.14 -void sh4_disasm_region( const gchar *filename, int from, int to )1.15 +void sh4_disasm_region( FILE *f, int from, int to )1.16 {1.17 int pc;1.18 char buf[80];1.19 char opcode[16];1.20 - FILE *f;1.22 - f = fopen( filename, "w" );1.23 for( pc = from; pc < to; pc+=2 ) {1.24 buf[0] = '\0';1.25 sh4_disasm_instruction( pc,1.26 buf, sizeof(buf), opcode );1.27 fprintf( f, " %08x: %s %s\n", pc, opcode, buf );1.28 }1.29 - fclose(f);1.30 }
.