summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/scudsp/scudspdasm.c
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2013-02-05 01:26:30 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2013-02-05 01:26:30 +0000
commit456343030d5e5a2818a12b2cc1b52a8c17d602cc (patch)
treebb15ea59f4d7dede152f81fcbaaf8eccb40cc658 /src/emu/cpu/scudsp/scudspdasm.c
parent2a092372c9b2c3ad76e58d92e6c2168baaa418b0 (diff)
Fixed input regression with Bug 2
Diffstat (limited to 'src/emu/cpu/scudsp/scudspdasm.c')
-rw-r--r--src/emu/cpu/scudsp/scudspdasm.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/emu/cpu/scudsp/scudspdasm.c b/src/emu/cpu/scudsp/scudspdasm.c
index 86dface1f53..afb750cf5ed 100644
--- a/src/emu/cpu/scudsp/scudspdasm.c
+++ b/src/emu/cpu/scudsp/scudspdasm.c
@@ -24,13 +24,16 @@ enum
EA_DMADSTMEM,
EA_DSTMEM,
EA_MVIDSTMEM,
+ EA_FLAGS,
+ EA_DMASRCMEM
+
};
struct SCUDSP_OPCODE {
char mnemonic[32];
int address_mode_1;
int address_mode_2;
- int address_mode_3,
+ int address_mode_3;
};
static const SCUDSP_OPCODE alu_table[16] =
@@ -95,7 +98,7 @@ static const SCUDSP_OPCODE dma_table[] =
{
{ "DMA", EA_D0, EA_DMADSTMEM, EA_IMM8, }, /* 000 */ // "DMA%H%A D0,%M,%I",
{ "DMA", EA_DMASRCMEM, EA_D0, EA_IMM8, }, /* 001 */ // "DMA%H%A %s,D0,%I",
- { "DMA", 0, 0, 0, }, /* 010 */ // "DMA%H%A D0,%M,%s",
+ { "DMA", 0, 0, 0, }, /* 010 */ // "DMA%H%A D0,%M,%s",
{ "DMA", 0, 0, 0, }, /* 011 */ // "DMA%H%A %s,D0,%s",
{ "DMAH", EA_D0, EA_DMADSTMEM, EA_IMM8, }, /* 100 */ // "DMA%H%A D0,%M,%I",
{ "DMAH", EA_DMASRCMEM, EA_D0, EA_IMM8, }, /* 101 */ // "DMA%H%A %s,D0,%I",
@@ -206,7 +209,7 @@ static const char *const cond_flags[] =
/*****************************************************************************/
static char *output;
-static const UINT32 *rombase;
+static const UINT8 *rombase;
static void ATTR_PRINTF(1,2) print(const char *fmt, ...)
{
@@ -236,9 +239,9 @@ static UINT8 add_table(UINT32 cur_opcode)
static UINT32 decode_opcode(UINT32 pc, const SCUDSP_OPCODE *op_table,UINT32 cur_opcode)
{
- INT8 rel8;
- UINT32 imm32;
- UINT8 op2;
+// INT8 rel8;
+// UINT32 imm32;
+// UINT8 op2;
UINT32 flags = 0;
//if (!strcmp(op_table->mnemonic, "jsr") || !strcmp(op_table->mnemonic, "bsr"))