Search
lxdream.org :: lxdream/src/sh4/sh4dasm.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4dasm.h
changeset 1300:d18488c8668b
prev1065:bc1cc0c54917
author nkeynes
date Wed May 27 08:46:29 2015 +1000 (8 years ago)
permissions -rw-r--r--
last change Add support for extracting the ELF symbol table and printing symbol names
alongside the SH4 disassembly
file annotate diff log raw
nkeynes@30
     1
/**
nkeynes@561
     2
 * $Id$
nkeynes@30
     3
 * 
nkeynes@30
     4
 * SH4 CPU definition and disassembly function declarations
nkeynes@30
     5
 *
nkeynes@30
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@30
     7
 *
nkeynes@30
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@30
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@30
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@30
    11
 * (at your option) any later version.
nkeynes@30
    12
 *
nkeynes@30
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@30
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@30
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@30
    16
 * GNU General Public License for more details.
nkeynes@30
    17
 */
nkeynes@30
    18
nkeynes@736
    19
#ifndef lxdream_sh4dasm_H
nkeynes@736
    20
#define lxdream_sh4dasm_H 1
nkeynes@1
    21
nkeynes@30
    22
#include "cpu.h"
nkeynes@9
    23
nkeynes@1
    24
#ifdef __cplusplus
nkeynes@1
    25
extern "C" {
nkeynes@1
    26
#endif
nkeynes@1
    27
nkeynes@1
    28
#include <stdio.h>
nkeynes@1
    29
nkeynes@11
    30
uint32_t sh4_disasm_instruction( uint32_t pc, char *buf, int len, char * );
nkeynes@569
    31
void sh4_disasm_region( FILE *f, int from, int to );
nkeynes@1300
    32
const char *sh4_disasm_get_symbol( sh4addr_t addr );
nkeynes@9
    33
nkeynes@1
    34
#ifdef __cplusplus
nkeynes@1
    35
}
nkeynes@1
    36
#endif
nkeynes@1
    37
nkeynes@736
    38
#endif /* !lxdream_sh4dasm_H */
.