filename | src/x86dasm/x86dasm.h |
changeset | 365:94cab5ad0ed8 |
prev | 362:dc40e2064dc4 |
next | 376:8c7587af5a5d |
author | nkeynes |
date | Sat Sep 08 04:05:35 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Handle video driver init failure cleanly (fallback to headless) Hookup shutdown for the GTK driver |
view | annotate | diff | log | raw |
1 /**
2 * $Id: x86dasm.h,v 1.2 2007-09-04 08:32:10 nkeynes Exp $
3 *
4 * Wrapper around i386-dis to supply the same behaviour as the other
5 * disassembly functions.
6 *
7 * Copyright (c) 2005 Nathan Keynes.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 */
20 #include "cpu.h"
21 #include "mem.h"
22 extern const struct cpu_desc_struct x86_cpu_desc;
24 typedef struct x86_symbol {
25 const char *name;
26 void *ptr;
27 } x86_symbol;
29 void x86_set_symtab( x86_symbol *symtab, int num_symbols );
30 void x86_disasm_init(char *buf, uint32_t vma, int buflen);
31 uint32_t x86_disasm_instruction( uint32_t pc, char *buf, int len, char *opcode );
.