1.1 --- a/src/x86dasm/x86dasm.c Tue Sep 04 08:32:10 2007 +0000
1.2 +++ b/src/x86dasm/x86dasm.c Thu Sep 20 08:37:19 2007 +0000
1.5 - * $Id: x86dasm.c,v 1.2 2007-09-04 08:32:10 nkeynes Exp $
1.6 + * $Id: x86dasm.c,v 1.3 2007-09-12 09:16:47 nkeynes Exp $
1.8 * Wrapper around i386-dis to supply the same behaviour as the other
1.9 * disassembly functions.
1.11 static x86_symbol *x86_symtab;
1.12 static int x86_num_symbols = 0;
1.14 +void x86_disasm_block(FILE *out, void *start, uint32_t len)
1.16 + uint32_t start_addr = (uint32_t)start;
1.18 + x86_disasm_init( start, start_addr, len );
1.19 + for( pc = start_addr; pc < start_addr + len; ) {
1.22 + uint32_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
1.23 + fprintf( out, "%08X: %-20s %s\n", pc, op, buf );
1.28 void x86_disasm_init(char *buf, uint32_t vma, int buflen)
1.30 init_disassemble_info( &x86_disasm_info, NULL, x86_disasm_output );