summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2011-08-24 16:53:59 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2011-08-24 16:53:59 +0000
commit83cf6ee054784008c45cb4a0f7c84cb52d3ee8e4 (patch)
tree26b9d7b22c323b7fa7a63a16aebe9d970b95c64a
parentc28c95178b2eabf668cd6ef936b59ab61ee21bae (diff)
Added shared SARAM hook-up in TMS32051 ... this also regresses Dangerous Curves :/
-rw-r--r--src/emu/cpu/tms32051/tms32051.c11
-rw-r--r--src/mame/drivers/taitojc.c4
-rw-r--r--src/mame/video/taitojc.c2
3 files changed, 11 insertions, 6 deletions
diff --git a/src/emu/cpu/tms32051/tms32051.c b/src/emu/cpu/tms32051/tms32051.c
index f668546c511..7af6f971f53 100644
--- a/src/emu/cpu/tms32051/tms32051.c
+++ b/src/emu/cpu/tms32051/tms32051.c
@@ -536,15 +536,16 @@ static WRITE16_HANDLER( cpuregs_w )
**************************************************************************/
static ADDRESS_MAP_START( internal_pgm, AS_PROGRAM, 16 )
- AM_RANGE(0x2000, 0x23ff) AM_RAM // SARAM
- AM_RANGE(0xfe00, 0xffff) AM_RAM AM_SHARE("share11") // DARAM B0
+ AM_RANGE(0x2000, 0x23ff) AM_RAM AM_SHARE("saram") // SARAM
+ AM_RANGE(0xfe00, 0xffff) AM_RAM AM_SHARE("daram_b0") // DARAM B0
ADDRESS_MAP_END
static ADDRESS_MAP_START( internal_data, AS_DATA, 16 )
AM_RANGE(0x0000, 0x005f) AM_READWRITE(cpuregs_r, cpuregs_w)
- AM_RANGE(0x0060, 0x007f) AM_RAM // DARAM B2
- AM_RANGE(0x0100, 0x02ff) AM_RAM AM_SHARE("share11") // DARAM B0
- AM_RANGE(0x0300, 0x04ff) AM_RAM // DARAM B1
+ AM_RANGE(0x0060, 0x007f) AM_RAM // DARAM B2
+ AM_RANGE(0x0100, 0x02ff) AM_RAM AM_SHARE("daram_b0") // DARAM B0
+ AM_RANGE(0x0300, 0x04ff) AM_RAM // DARAM B1
+ AM_RANGE(0x0800, 0x0bff) AM_RAM AM_SHARE("saram")
ADDRESS_MAP_END
/**************************************************************************
diff --git a/src/mame/drivers/taitojc.c b/src/mame/drivers/taitojc.c
index 5a2dbfbfcae..456f0ffcb07 100644
--- a/src/mame/drivers/taitojc.c
+++ b/src/mame/drivers/taitojc.c
@@ -1121,6 +1121,7 @@ static WRITE16_HANDLER( dsp_to_main_w )
}
static ADDRESS_MAP_START( tms_program_map, AS_PROGRAM, 16 )
+// AM_RANGE(0x0000, 0x1fff) AM_READ(dsp_internal_rom_r) // TODO: Dangerous Curves tries to access 0x207?
AM_RANGE(0x4000, 0x7fff) AM_RAM
ADDRESS_MAP_END
@@ -1945,6 +1946,9 @@ ROM_START( dangcurv )
ROM_REGION( 0x00080, "user2", 0 ) /* eeprom */
ROM_FILL( 0x0000, 0x0080, 0 )
+ ROM_REGION( 0x2000, "dsprom", ROMREGION_ERASE00 ) /* this almost likely uses an internal ROM :/ */
+ ROM_LOAD( "tms320lc51", 0x0000, 0x2000, NO_DUMP )
+
ROM_REGION( 0x1800000, "gfx1", 0 )
ROM_LOAD32_WORD( "e09-05.009", 0x0800002, 0x200000, CRC(a948782f) SHA1(2a2b0d2955e036ddf424c54131435a20dbba3dd4) )
ROM_LOAD32_WORD( "e09-13.022", 0x0800000, 0x200000, CRC(985859e2) SHA1(8af9a73eba2151a5ef60799682fe667663a42743) )
diff --git a/src/mame/video/taitojc.c b/src/mame/video/taitojc.c
index 08b4b1cb380..715b955a854 100644
--- a/src/mame/video/taitojc.c
+++ b/src/mame/video/taitojc.c
@@ -196,7 +196,7 @@ static void draw_object(running_machine &machine, bitmap_t *bitmap, const rectan
for (i=x1; i < x2; i++)
{
- d[i] = 8; //TODO: black
+ d[i] = 0x78; //TODO: black
//index++;
}