mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
clean up. nw.
This commit is contained in:
parent
8886901993
commit
4d45aa5f72
@ -123,8 +123,8 @@ static UINT8 mess_md_io_read_data_port(running_machine &machine, int portnum)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
UINT8 svp_test = 0;
|
UINT8 svp_test = 0;
|
||||||
if (machine.root_device().ioport(":mdslot:rom_svp:MEMORY_TEST"))
|
if (state->m_slotcart)
|
||||||
svp_test = state->ioport(":mdslot:rom_svp:MEMORY_TEST")->read();
|
svp_test = state->m_slotcart->read_test();
|
||||||
|
|
||||||
// handle test input for SVP test
|
// handle test input for SVP test
|
||||||
if (portnum == 0 && svp_test)
|
if (portnum == 0 && svp_test)
|
||||||
|
@ -95,10 +95,12 @@ public:
|
|||||||
// reading and writing
|
// reading and writing
|
||||||
virtual DECLARE_READ16_MEMBER(read) { return 0xffff; }
|
virtual DECLARE_READ16_MEMBER(read) { return 0xffff; }
|
||||||
virtual DECLARE_WRITE16_MEMBER(write) {}
|
virtual DECLARE_WRITE16_MEMBER(write) {}
|
||||||
virtual DECLARE_READ16_MEMBER(read_a13) { return 0xffff; };
|
virtual DECLARE_READ16_MEMBER(read_a13) { return 0xffff; }
|
||||||
virtual DECLARE_WRITE16_MEMBER(write_a13) {};
|
virtual DECLARE_WRITE16_MEMBER(write_a13) {}
|
||||||
virtual DECLARE_READ16_MEMBER(read_a15) { return 0xffff; };
|
virtual DECLARE_READ16_MEMBER(read_a15) { return 0xffff; }
|
||||||
virtual DECLARE_WRITE16_MEMBER(write_a15) {};
|
virtual DECLARE_WRITE16_MEMBER(write_a15) {}
|
||||||
|
|
||||||
|
virtual int read_test() { return 0; } // used by Virtua Racing test
|
||||||
|
|
||||||
/* this probably should do more, like make Genesis V2 'die' if the SEGA string is not written promptly */
|
/* this probably should do more, like make Genesis V2 'die' if the SEGA string is not written promptly */
|
||||||
virtual DECLARE_WRITE16_MEMBER(write_tmss_bank) { logerror("Write to TMSS bank: offset %x data %x\n", 0xa14000 + (offset << 1), data); };
|
virtual DECLARE_WRITE16_MEMBER(write_tmss_bank) { logerror("Write to TMSS bank: offset %x data %x\n", 0xa14000 + (offset << 1), data); };
|
||||||
@ -183,6 +185,8 @@ public:
|
|||||||
virtual DECLARE_WRITE16_MEMBER(write_a15);
|
virtual DECLARE_WRITE16_MEMBER(write_a15);
|
||||||
virtual DECLARE_WRITE16_MEMBER(write_tmss_bank) { if (m_cart) m_cart->write_tmss_bank(space, offset, data, mem_mask); };
|
virtual DECLARE_WRITE16_MEMBER(write_tmss_bank) { if (m_cart) m_cart->write_tmss_bank(space, offset, data, mem_mask); };
|
||||||
|
|
||||||
|
virtual int read_test() { if (m_cart) return m_cart->read_test(); else return 0; } // used by Virtua Racing test
|
||||||
|
|
||||||
// TODO: this only needs to be public because megasvp copies rom into memory region, so we need to rework that code...
|
// TODO: this only needs to be public because megasvp copies rom into memory region, so we need to rework that code...
|
||||||
//private:
|
//private:
|
||||||
|
|
||||||
|
@ -301,6 +301,11 @@ READ16_MEMBER( md_rom_svp_device::rom_read2 )
|
|||||||
return m_rom[offset + 0x800/2];
|
return m_rom[offset + 0x800/2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int md_rom_svp_device::read_test()
|
||||||
|
{
|
||||||
|
return m_test_ipt->read();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static INPUT_PORTS_START( md_svp )
|
static INPUT_PORTS_START( md_svp )
|
||||||
PORT_START("MEMORY_TEST") /* special memtest mode */
|
PORT_START("MEMORY_TEST") /* special memtest mode */
|
||||||
|
@ -35,6 +35,8 @@ public:
|
|||||||
virtual DECLARE_READ16_MEMBER(read_a15);
|
virtual DECLARE_READ16_MEMBER(read_a15);
|
||||||
virtual DECLARE_WRITE16_MEMBER(write_a15);
|
virtual DECLARE_WRITE16_MEMBER(write_a15);
|
||||||
|
|
||||||
|
virtual int read_test();
|
||||||
|
|
||||||
virtual DECLARE_READ16_MEMBER(rom_read1);
|
virtual DECLARE_READ16_MEMBER(rom_read1);
|
||||||
virtual DECLARE_READ16_MEMBER(rom_read2);
|
virtual DECLARE_READ16_MEMBER(rom_read2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user