Fix for External->Reg opcode in TGP, VF2 now boots then dies a bunch of seconds later in gameplay/attract.

This commit is contained in:
Angelo Salese 2014-04-27 01:39:15 +00:00
parent d7e3b4a5e1
commit 470be8ce4b

View File

@ -1160,12 +1160,17 @@ void mb86233_cpu_device::execute_run()
{
UINT32 offset;
if ( ( r2 >> 6 ) & 1 )
if ( (( r2 >> 6 ) & 7) == 1 )
{
offset = INDIRECT(r1,1);
val = GETEXTERNAL( 0,offset);
}
else
{
offset = INDIRECT(r1,0);
val = GETEXTERNAL( GETEB(),offset);
}
val = GETEXTERNAL( GETEB(),offset);
ALU( alu);
SETREGS(r2,val);
}