X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fdebugger%2Fdbg_decoder.h;fp=source%2Fmupen64plus-core%2Fsrc%2Fdebugger%2Fdbg_decoder.h;h=cd3b93098f1f00a552d8277c42f04f94baa2cc12;hb=451ab91e3827a6384981b3300e2a7000d2eaba58;hp=0000000000000000000000000000000000000000;hpb=a2ab25365b5b0dddbee476d695d8a31151407581;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-core/src/debugger/dbg_decoder.h b/source/mupen64plus-core/src/debugger/dbg_decoder.h new file mode 100644 index 0000000..cd3b930 --- /dev/null +++ b/source/mupen64plus-core/src/debugger/dbg_decoder.h @@ -0,0 +1,61 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus - dbg_decoder.h * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2010 Marshall B. Rogers * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#ifndef __DECODER_H__ +#define __DECODER_H__ + +#include "dbg_types.h" + +#if defined(WIN32) +typedef unsigned int uint32_t; +typedef unsigned char bool; +#define false 0 +#define true 1 +#else +#include +#include +#endif + +/* Disassembler lookup handler */ +typedef char * (*r4k_lookup_func)(uint32_t, void *); + +/* Disassembler state */ +typedef +struct r4k_dis_t +{ + r4k_lookup_func lookup_sym; + void * lookup_sym_d; + r4k_lookup_func lookup_rel_hi16; + void * lookup_rel_hi16_d; + r4k_lookup_func lookup_rel_lo16; + void * lookup_rel_lo16_d; + + /* Private */ + char * dest; + int length; +} +R4kDis; + +extern void r4300_decode_op ( uint32, char *, char *, int ); + + +#endif /* __DECODER_H__ */ +