mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
progolf: fixed banking (now the rom test pass)
This commit is contained in:
parent
ef5915ffbb
commit
77038246ed
@ -5,7 +5,6 @@
|
|||||||
driver by Angelo Salese, based on early work by Pierpaolo Prazzoli and David Haywood
|
driver by Angelo Salese, based on early work by Pierpaolo Prazzoli and David Haywood
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
- There's a "rom test error 6" in service mode; the problem is in banking (from 8000 to 87ff)
|
|
||||||
- Hazards doesn't have any effect, might be the same issue as above;
|
- Hazards doesn't have any effect, might be the same issue as above;
|
||||||
- There's no "rough" display on the sides on the screen, might be the same issue as above;
|
- There's no "rough" display on the sides on the screen, might be the same issue as above;
|
||||||
- Flip screen support;
|
- Flip screen support;
|
||||||
@ -150,10 +149,8 @@ static WRITE8_HANDLER( progolf_charram_w )
|
|||||||
|
|
||||||
static WRITE8_HANDLER( progolf_char_vregs_w )
|
static WRITE8_HANDLER( progolf_char_vregs_w )
|
||||||
{
|
{
|
||||||
// if(data & 0x40) printf("\n%02x ",data & 0xf0);
|
|
||||||
char_pen = data & 0x07;
|
char_pen = data & 0x07;
|
||||||
progolf_gfx_switch = data & 0xf0;
|
progolf_gfx_switch = data & 0xf0;
|
||||||
if(data & 0x30)
|
|
||||||
char_pen_vreg = data & 0x30;
|
char_pen_vreg = data & 0x30;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,9 +185,10 @@ static READ8_HANDLER( audio_command_r )
|
|||||||
|
|
||||||
static READ8_HANDLER( progolf_videoram_r )
|
static READ8_HANDLER( progolf_videoram_r )
|
||||||
{
|
{
|
||||||
UINT8 *gfx_rom = memory_region(space->machine, "bg_map");
|
UINT8 *gfx_rom = memory_region(space->machine, "gfx1");
|
||||||
|
|
||||||
// if(progolf_gfx_switch & 0x40) printf("%04x-%04x ",offset,gfx_rom[offset]);
|
if (offset >= 0x0800)
|
||||||
|
{
|
||||||
if (progolf_gfx_switch == 0x50)
|
if (progolf_gfx_switch == 0x50)
|
||||||
return gfx_rom[offset];
|
return gfx_rom[offset];
|
||||||
else if (progolf_gfx_switch == 0x60)
|
else if (progolf_gfx_switch == 0x60)
|
||||||
@ -199,6 +197,16 @@ static READ8_HANDLER( progolf_videoram_r )
|
|||||||
return gfx_rom[offset + 0x2000];
|
return gfx_rom[offset + 0x2000];
|
||||||
else
|
else
|
||||||
return videoram[offset];
|
return videoram[offset];
|
||||||
|
} else {
|
||||||
|
if (progolf_gfx_switch == 0x10)
|
||||||
|
return gfx_rom[offset];
|
||||||
|
else if (progolf_gfx_switch == 0x20)
|
||||||
|
return gfx_rom[offset + 0x1000];
|
||||||
|
else if (progolf_gfx_switch == 0x30)
|
||||||
|
return gfx_rom[offset + 0x2000];
|
||||||
|
else
|
||||||
|
return videoram[offset];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static WRITE8_HANDLER( progolf_videoram_w )
|
static WRITE8_HANDLER( progolf_videoram_w )
|
||||||
@ -471,15 +479,6 @@ ROM_START( progolf )
|
|||||||
ROM_LOAD( "g8-m.9a", 0x1000, 0x1000, CRC(cf3f35da) SHA1(06acc29a5e282b5a9960eabebdb1a529910286b6) )
|
ROM_LOAD( "g8-m.9a", 0x1000, 0x1000, CRC(cf3f35da) SHA1(06acc29a5e282b5a9960eabebdb1a529910286b6) )
|
||||||
ROM_LOAD( "g9-m.10a", 0x2000, 0x1000, CRC(7712e248) SHA1(4e7dd12d323cf8378adb1e32a763a1799e2b4bdc) )
|
ROM_LOAD( "g9-m.10a", 0x2000, 0x1000, CRC(7712e248) SHA1(4e7dd12d323cf8378adb1e32a763a1799e2b4bdc) )
|
||||||
|
|
||||||
ROM_REGION( 0x3000, "bg_map", ROMREGION_ERASE00 )
|
|
||||||
// ROM_COPY( "gfx1", 0x0c00, 0x0000, 0x0100 )
|
|
||||||
// ROM_COPY( "gfx1", 0x1c00, 0x0100, 0x0100 )
|
|
||||||
// ROM_COPY( "gfx1", 0x2c00, 0x0200, 0x0100 )
|
|
||||||
ROM_COPY( "gfx1", 0x0800, 0x0800, 0x0800 )
|
|
||||||
ROM_COPY( "gfx1", 0x1800, 0x1800, 0x0800 )
|
|
||||||
ROM_COPY( "gfx1", 0x2800, 0x2800, 0x0800 )
|
|
||||||
// ROM_COPY( "gfx1", 0x2800, 0x0c00, 0x0400 )
|
|
||||||
|
|
||||||
ROM_REGION( 0x60, "proms", 0 )
|
ROM_REGION( 0x60, "proms", 0 )
|
||||||
ROM_LOAD( "gcm.a14", 0x0000, 0x0020, CRC(8259e7db) SHA1(f98db5ebf8182eb0359fa372fa664cb6d3b09437) )
|
ROM_LOAD( "gcm.a14", 0x0000, 0x0020, CRC(8259e7db) SHA1(f98db5ebf8182eb0359fa372fa664cb6d3b09437) )
|
||||||
ROM_LOAD( "gbm.k4", 0x0020, 0x0020, CRC(1ea3319f) SHA1(809af38e73fa1f30410e7d6b4504fe360ee9b091) )
|
ROM_LOAD( "gbm.k4", 0x0020, 0x0020, CRC(1ea3319f) SHA1(809af38e73fa1f30410e7d6b4504fe360ee9b091) )
|
||||||
@ -502,15 +501,6 @@ ROM_START( progolfa )
|
|||||||
ROM_LOAD( "g8-m.a9", 0x1000, 0x1000, CRC(cf3f35da) SHA1(06acc29a5e282b5a9960eabebdb1a529910286b6) )
|
ROM_LOAD( "g8-m.a9", 0x1000, 0x1000, CRC(cf3f35da) SHA1(06acc29a5e282b5a9960eabebdb1a529910286b6) )
|
||||||
ROM_LOAD( "g9-m.a10", 0x2000, 0x1000, CRC(7712e248) SHA1(4e7dd12d323cf8378adb1e32a763a1799e2b4bdc) )
|
ROM_LOAD( "g9-m.a10", 0x2000, 0x1000, CRC(7712e248) SHA1(4e7dd12d323cf8378adb1e32a763a1799e2b4bdc) )
|
||||||
|
|
||||||
ROM_REGION( 0x3000, "bg_map", ROMREGION_ERASE00 )
|
|
||||||
// ROM_COPY( "gfx1", 0x0c00, 0x0000, 0x0100 )
|
|
||||||
// ROM_COPY( "gfx1", 0x1c00, 0x0100, 0x0100 )
|
|
||||||
// ROM_COPY( "gfx1", 0x2c00, 0x0200, 0x0100 )
|
|
||||||
ROM_COPY( "gfx1", 0x0800, 0x0800, 0x0800 )
|
|
||||||
ROM_COPY( "gfx1", 0x1800, 0x1800, 0x0800 )
|
|
||||||
ROM_COPY( "gfx1", 0x2800, 0x2800, 0x0800 )
|
|
||||||
// ROM_COPY( "gfx1", 0x2800, 0x0c00, 0x0400 )
|
|
||||||
|
|
||||||
ROM_REGION( 0x60, "proms", 0 )
|
ROM_REGION( 0x60, "proms", 0 )
|
||||||
ROM_LOAD( "gcm.a14", 0x0000, 0x0020, CRC(8259e7db) SHA1(f98db5ebf8182eb0359fa372fa664cb6d3b09437) )
|
ROM_LOAD( "gcm.a14", 0x0000, 0x0020, CRC(8259e7db) SHA1(f98db5ebf8182eb0359fa372fa664cb6d3b09437) )
|
||||||
ROM_LOAD( "gbm.k4", 0x0020, 0x0020, CRC(1ea3319f) SHA1(809af38e73fa1f30410e7d6b4504fe360ee9b091) )
|
ROM_LOAD( "gbm.k4", 0x0020, 0x0020, CRC(1ea3319f) SHA1(809af38e73fa1f30410e7d6b4504fe360ee9b091) )
|
||||||
|
Loading…
Reference in New Issue
Block a user