Previous 199869 Revisions Next

r23509 Thursday 6th June, 2013 at 22:45:59 UTC by hap
viprp1 broke at prev commit, it really does suggest that it writes the region code to flash at reset
[src/mame/drivers]seibuspi.c

trunk/src/mame/drivers/seibuspi.c
r23508r23509
10921092{
10931093   offset &= 0x1fffff;
10941094   
1095   // offset 0 goes directly to the SPI mainboard region code
1096   // this data is not stored on the flashrom itself
1097   if (offset == 0)
1098      return m_region_code;
1099   
1100   else if (offset < 0x100000)
1095   if (offset < 0x100000)
11011096      return m_soundflash1->read(offset);
11021097   else
11031098      return m_soundflash2->read(offset & 0x0fffff);
r23508r23509
18551850   membank("bank1")->set_entry(0);
18561851   m_z80_lastbank = 0;
18571852   m_z80_prg_transfer_pos = 0;
1853
1854   // Indicated by viprp1 testing this byte on several occasions,
1855   // it seems likely that the region code is stored on flash at reset.
1856   m_soundflash1->write(0, 0xff);
1857   m_soundflash1->write(0, 0x10);
1858   m_soundflash1->write(0, m_region_code);
1859
1860   m_soundflash1->write(0, 0xff);
1861   m_soundflash2->write(0, 0xff);
18581862}
18591863
18601864static MACHINE_CONFIG_START( spi, seibuspi_state )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team