Search
lxdream.org :: lxdream/src/x86dasm/x86dasm.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/x86dasm/x86dasm.h
changeset 429:e581b90c3fb3
prev376:8c7587af5a5d
next476:75eb00fc191d
author nkeynes
date Sat Oct 27 05:48:22 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Bump the save state version number (incompatible changes)
file annotate diff log raw
nkeynes@362
     1
/**
nkeynes@429
     2
 * $Id: x86dasm.h,v 1.4 2007-10-08 11:48:10 nkeynes Exp $
nkeynes@362
     3
 *
nkeynes@362
     4
 * Wrapper around i386-dis to supply the same behaviour as the other
nkeynes@362
     5
 * disassembly functions.
nkeynes@362
     6
 *
nkeynes@362
     7
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@362
     8
 *
nkeynes@362
     9
 * This program is free software; you can redistribute it and/or modify
nkeynes@362
    10
 * it under the terms of the GNU General Public License as published by
nkeynes@362
    11
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@362
    12
 * (at your option) any later version.
nkeynes@362
    13
 *
nkeynes@362
    14
 * This program is distributed in the hope that it will be useful,
nkeynes@362
    15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@362
    16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@362
    17
 * GNU General Public License for more details.
nkeynes@362
    18
 */
nkeynes@362
    19
nkeynes@362
    20
#include "cpu.h"
nkeynes@362
    21
#include "mem.h"
nkeynes@362
    22
extern const struct cpu_desc_struct x86_cpu_desc;
nkeynes@362
    23
nkeynes@365
    24
typedef struct x86_symbol {
nkeynes@365
    25
    const char *name;
nkeynes@365
    26
    void *ptr;
nkeynes@365
    27
} x86_symbol;
nkeynes@365
    28
nkeynes@376
    29
void x86_disasm_block( FILE *out, void *block, uint32_t len );
nkeynes@365
    30
void x86_set_symtab( x86_symbol *symtab, int num_symbols );
nkeynes@429
    31
void x86_disasm_init(unsigned char *buf, uint32_t vma, int buflen);
nkeynes@362
    32
uint32_t x86_disasm_instruction( uint32_t pc, char *buf, int len, char *opcode );
.