Previous 15994 Revisions Next

r11505 Tuesday 10th May, 2011 at 20:10:28 UTC by Curt Coder
[CGC7900] Fixed crash on 64-bit MSVC build. (nw)
[src/mess/drivers]cgc7900.c

src/mess/drivers/cgc7900.c
r11504r11505
225225
226226static ADDRESS_MAP_START( cgc7900_mem, AS_PROGRAM, 16, cgc7900_state )
227227   ADDRESS_MAP_UNMAP_HIGH
228   AM_RANGE(0x000000, 0x1fffff) AM_RAM AM_BASE(m_chrom_ram)
228   AM_RANGE(0x000000, 0x000007) AM_ROM AM_REGION(M68000_TAG, 0)
229   AM_RANGE(0x000008, 0x1fffff) AM_RAM AM_BASE(m_chrom_ram)
229230   AM_RANGE(0x800000, 0x80ffff) AM_ROM AM_REGION(M68000_TAG, 0)
230231   AM_RANGE(0xa00000, 0xbfffff) AM_READWRITE(z_mode_r, z_mode_w)
231232   AM_RANGE(0xc00000, 0xdfffff) AM_RAM AM_BASE(m_plane_ram)
r11504r11505
406407
407408void cgc7900_state::machine_reset()
408409{
409   UINT8* user1 = machine().region(M68000_TAG)->base();
410
411   memcpy((UINT8*)m_chrom_ram,user1,8);
412
413   m_maincpu->reset();
414
415   memset((UINT8*)m_chrom_ram,0,8);
416410}
417411
418412/***************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team