This commit is contained in:
David Haywood 2016-01-25 21:04:54 +00:00
parent d5ba568193
commit 8f14962f4f
4 changed files with 18 additions and 5 deletions

View File

@ -4675,7 +4675,7 @@ ROM_START( gdfs )
ROM_LOAD( "vg004-10.u45", 0x200000, 0x200000, CRC(b3c6b1cb) SHA1(c601213e35d8dfd1244921da5c093f82145706d2) )
ROM_LOAD( "vg004-11.u48", 0x400000, 0x200000, CRC(1491def1) SHA1(344043302c81b4118cac4f692375b8af7ea68570) )
ROM_REGION( 0x1000000, "st0020", /*0*/0 ) // Zooming Sprites, read by a blitter
ROM_REGION( 0x1000000, "st0020_spr", /*0*/0 ) // Zooming Sprites, read by a blitter
ROM_LOAD( "vg004-01.u33", 0x0000000, 0x200000, CRC(aa9a81c2) SHA1(a7d005f9be199e317aa4c6aed8a2ab322fe82119) )
ROM_LOAD( "vg004-02.u34", 0x0200000, 0x200000, CRC(fa40ecb4) SHA1(0513f3b6879dc7d207646d949d6ddb7251f77bcc) )
ROM_LOAD( "vg004-03.u35", 0x0400000, 0x200000, CRC(90004023) SHA1(041edb77b34e6677ac5b85ce542d87a9bb1baf31) )

View File

@ -332,7 +332,7 @@ void kc_state::update_0x0c000()
{
address_space &space = m_maincpu->space( AS_PROGRAM );
if ((m_pio_data[0] & (1<<7)) && memregion("basic")->base() != nullptr)
if ((m_pio_data[0] & (1<<7)) && memregion("basic") != nullptr)
{
/* BASIC takes next priority */
LOG(("BASIC rom 0x0c000\n"));

View File

@ -19,7 +19,6 @@ st0020_device::st0020_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, ST0020_SPRITES, "Seta ST0020 Sprites", tag, owner, clock, "st0020", __FILE__)
, m_gfxdecode(*this)
, m_palette(*this)
, m_rom_ptr(*this, ":st0020")
{
m_is_st0032 = 0;
m_is_jclub2 = 0;
@ -74,6 +73,19 @@ static const gfx_layout layout_16x8x8_2 =
void st0020_device::device_start()
{
memory_region* rgn = memregion(tag());
if (rgn)
{
m_rom_ptr = rgn->base();
m_rom_size = rgn->bytes();
}
else
{
m_rom_ptr = nullptr;
m_rom_size = 0;
}
m_st0020_gfxram = make_unique_clear<UINT16[]>(4 * 0x100000 / 2);
m_st0020_spriteram = make_unique_clear<UINT16[]>(0x80000 / 2);
m_st0020_blitram = make_unique_clear<UINT16[]>(0x100 / 2);
@ -190,7 +202,7 @@ WRITE16_MEMBER(st0020_device::st0020_blit_w)
return;
}
size_t size = m_rom_ptr.bytes();
size_t size = m_rom_size;
if ( (src+len <= size) && (dst+len <= 4 * 0x100000) )
{

View File

@ -47,7 +47,8 @@ private:
DECLARE_WRITE16_MEMBER(st0020_blit_w);
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
optional_region_ptr<UINT8> m_rom_ptr;
UINT8* m_rom_ptr;
size_t m_rom_size;
};
#define ST0020_ST0032_BYTESWAP_DATA \