Search
lxdream.org :: lxdream/src/x86dasm/x86dasm.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/x86dasm/x86dasm.h
changeset 362:dc40e2064dc4
next365:94cab5ad0ed8
author nkeynes
date Tue Aug 28 08:46:54 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Add the i386 disassembler from binutils (why write your own if you don't
have to) to use for translator validation
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/x86dasm/x86dasm.h Tue Aug 28 08:46:54 2007 +0000
1.3 @@ -0,0 +1,24 @@
1.4 +/**
1.5 + * $Id: x86dasm.h,v 1.1 2007-08-28 08:46:54 nkeynes Exp $
1.6 + *
1.7 + * Wrapper around i386-dis to supply the same behaviour as the other
1.8 + * disassembly functions.
1.9 + *
1.10 + * Copyright (c) 2005 Nathan Keynes.
1.11 + *
1.12 + * This program is free software; you can redistribute it and/or modify
1.13 + * it under the terms of the GNU General Public License as published by
1.14 + * the Free Software Foundation; either version 2 of the License, or
1.15 + * (at your option) any later version.
1.16 + *
1.17 + * This program is distributed in the hope that it will be useful,
1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.20 + * GNU General Public License for more details.
1.21 + */
1.22 +
1.23 +#include "cpu.h"
1.24 +#include "mem.h"
1.25 +extern const struct cpu_desc_struct x86_cpu_desc;
1.26 +
1.27 +uint32_t x86_disasm_instruction( uint32_t pc, char *buf, int len, char *opcode );
.