LLE-WIP: Indentation and small fixes to coding style.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2821 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-04-01 22:03:52 +00:00
parent 59c44bd13b
commit 9915533c3c
6 changed files with 1324 additions and 1322 deletions

View File

@ -128,6 +128,7 @@ namespace DSPInterpreter {
void nx(const UDSPInstruction& opc); void nx(const UDSPInstruction& opc);
void movnp(const UDSPInstruction& opc); void movnp(const UDSPInstruction& opc);
// END OF UNIMPLEMENTED // END OF UNIMPLEMENTED
}; };
#endif // _DSPINTERPRETER_H #endif // _DSPINTERPRETER_H

View File

@ -19,6 +19,7 @@
#define _DSPJIT_H #define _DSPJIT_H
namespace DSPJit { namespace DSPJit {
// TODO(XK): Fill // TODO(XK): Fill

View File

@ -236,8 +236,8 @@ DSPOPCTemplate opcodes_ext[] =
{"XXX", 0x0000, 0x0000, nop, nop, 1, 1, {{P_VAL, 1, 0, 0, 0x00ff}},}, {"XXX", 0x0000, 0x0000, nop, nop, 1, 1, {{P_VAL, 1, 0, 0, 0x00ff}},},
}; };
const u32 opcodes_size = sizeof(opcodes) / sizeof(opc_t); const u32 opcodes_size = sizeof(opcodes) / sizeof(DSPOPCTemplate);
const u32 opcodes_ext_size = sizeof(opcodes_ext) / sizeof(opc_t); const u32 opcodes_ext_size = sizeof(opcodes_ext) / sizeof(DSPOPCTemplate);
void InitInstructionTable() { void InitInstructionTable() {
// TODO(XK): Fill // TODO(XK): Fill

View File

@ -73,16 +73,16 @@ union UDSPInstruction
typedef void (*dspInstFunc)(const UDSPInstruction&); typedef void (*dspInstFunc)(const UDSPInstruction&);
typedef struct DSPOParams typedef struct
{ {
parameterType type; parameterType type;
u8 size; u8 size;
u8 loc; u8 loc;
s8 lshift; s8 lshift;
u16 mask; u16 mask;
} opcpar_t; } DSPOParams;
typedef struct DSPOPCTemplate typedef struct
{ {
const char *name; const char *name;
u16 opcode; u16 opcode;
@ -94,11 +94,11 @@ typedef struct DSPOPCTemplate
u8 size; u8 size;
u8 param_count; u8 param_count;
DSPOParams params[8]; DSPOParams params[8];
} opc_t; } DSPOPCTemplate;
extern DSPOPCTemplate opcodes[]; extern DSPOPCTemplate opcodes[];
extern const u32 opcodes_size; extern const u32 opcodes_size;
extern opc_t opcodes_ext[]; extern DSPOPCTemplate opcodes_ext[];
extern const u32 opcodes_ext_size; extern const u32 opcodes_ext_size;
void InitInstructionTable(); void InitInstructionTable();

View File

@ -153,7 +153,7 @@ const char* pdname(u16 val)
} }
char* gd_dis_params(gd_globals_t* gdg, opc_t* opc, u16 op1, u16 op2, char* strbuf) char* gd_dis_params(gd_globals_t* gdg, DSPOPCTemplate* opc, u16 op1, u16 op2, char* strbuf)
{ {
char* buf = strbuf; char* buf = strbuf;
u32 val; u32 val;
@ -278,8 +278,8 @@ gd_globals_t* gd_init()
u16 gd_dis_get_opcode_size(gd_globals_t* gdg) u16 gd_dis_get_opcode_size(gd_globals_t* gdg)
{ {
opc_t* opc = 0; DSPOPCTemplate* opc = 0;
opc_t* opc_ext = 0; DSPOPCTemplate* opc_ext = 0;
bool extended; bool extended;
if ((gdg->pc & 0x7fff) >= 0x1000) if ((gdg->pc & 0x7fff) >= 0x1000)
@ -353,8 +353,8 @@ char* gd_dis_opcode(gd_globals_t* gdg)
{ {
u32 j; u32 j;
u32 op1, op2; u32 op1, op2;
opc_t* opc = NULL; DSPOPCTemplate *opc = NULL;
opc_t* opc_ext = NULL; DSPOPCTemplate *opc_ext = NULL;
u16 pc; u16 pc;
char* buf = gdg->buffer; char* buf = gdg->buffer;
bool extended; bool extended;