From 0871d5081932addafbfd9367bab47b590e1bd6a5 Mon Sep 17 00:00:00 2001 From: smf- Date: Tue, 10 Sep 2013 12:09:18 +0000 Subject: [PATCH] added undocumented opcode that behaves like DPCL [smf] --- src/emu/cpu/psx/gte.c | 3 ++- src/emu/cpu/psx/psxdasm.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/psx/gte.c b/src/emu/cpu/psx/gte.c index 041db61f1d3..a13c552baa8 100644 --- a/src/emu/cpu/psx/gte.c +++ b/src/emu/cpu/psx/gte.c @@ -492,7 +492,7 @@ int gte::docop2( UINT32 pc, int gteop ) switch( GTE_FUNCT( gteop ) ) { - case 0x00: + case 0x00: // drop through to RTPS case 0x01: GTELOG( pc, "%08x RTPS", gteop ); @@ -792,6 +792,7 @@ int gte::docop2( UINT32 pc, int gteop ) IR3 = Lm_B3( MAC3, lm ); return 1; + case 0x1a: // end of NCDT case 0x29: GTELOG( pc, "%08x DPCL", gteop ); diff --git a/src/emu/cpu/psx/psxdasm.c b/src/emu/cpu/psx/psxdasm.c index 1d25f5b013f..400bb078524 100644 --- a/src/emu/cpu/psx/psxdasm.c +++ b/src/emu/cpu/psx/psxdasm.c @@ -497,7 +497,7 @@ unsigned DasmPSXCPU( DasmPSXCPU_state *state, char *buffer, UINT32 pc, const UIN switch( GTE_FUNCT( op ) ) { - case 0x00: + case 0x00: // drop through to RTPS case 0x01: sprintf( buffer, "rtps%s%s", s_gtesf[ GTE_SF( op ) ], s_gtelm[ GTE_LM( op ) ] ); break; @@ -541,6 +541,7 @@ unsigned DasmPSXCPU( DasmPSXCPU_state *state, char *buffer, UINT32 pc, const UIN case 0x28: sprintf( buffer, "sqr%s%s", s_gtesf[ GTE_SF( op ) ], s_gtelm[ GTE_LM( op ) ] ); break; + case 0x1a: // end of NCDT case 0x29: sprintf( buffer, "dpcl%s%s", s_gtesf[ GTE_SF( op ) ], s_gtelm[ GTE_LM( op ) ] ); break;