mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +03:00
Work-around for TMS32051 crash on Taito JC soft reset
This commit is contained in:
parent
7e9d0900ac
commit
2eec977452
@ -241,7 +241,8 @@ static CPU_RESET( tms )
|
|||||||
|
|
||||||
CHANGE_PC(cpustate, dst);
|
CHANGE_PC(cpustate, dst);
|
||||||
|
|
||||||
for (i=0; i < length; i++)
|
/* TODO: if you soft reset on Taito JC it tries to do a 0x7802->0x9007 (0xff00) transfer. */
|
||||||
|
for (i=0; i < (length & 0x7ff); i++)
|
||||||
{
|
{
|
||||||
UINT16 data = DM_READ16(cpustate, src++);
|
UINT16 data = DM_READ16(cpustate, src++);
|
||||||
PM_WRITE16(cpustate, dst++, data);
|
PM_WRITE16(cpustate, dst++, data);
|
||||||
|
@ -194,11 +194,9 @@ static void draw_object(running_machine &machine, bitmap_t *bitmap, const rectan
|
|||||||
{
|
{
|
||||||
UINT16 *d = BITMAP_ADDR16(bitmap, j, 0);
|
UINT16 *d = BITMAP_ADDR16(bitmap, j, 0);
|
||||||
|
|
||||||
UINT8 pen = state->m_objlist[(address-0xff000)/4];
|
|
||||||
|
|
||||||
for (i=x1; i < x2; i++)
|
for (i=x1; i < x2; i++)
|
||||||
{
|
{
|
||||||
d[i] = pen;
|
d[i] = 8; //TODO: black
|
||||||
|
|
||||||
//index++;
|
//index++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user