Previous 199869 Revisions Next

r33693 Friday 5th December, 2014 at 13:23:04 UTC by David Haywood
where things map, we might be missing a real bios (nw)
[src/mess/drivers]leapster.c

trunk/src/mess/drivers/leapster.c
r242204r242205
248248{
249249   UINT32 size = m_cart->common_get_size("rom");
250250
251   m_cart->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
251   m_cart->rom_alloc(size, GENERIC_ROM32_WIDTH, ENDIANNESS_LITTLE);
252252   m_cart->common_load_rom(m_cart->get_rom_base(), size, "rom");
253253
254254   return IMAGE_INIT_PASS;
r242204r242205
258258{
259259   astring region_tag;
260260   m_cart_rom = memregion(region_tag.cpy(m_cart->tag()).cat(GENERIC_ROM_REGION_TAG));
261   membank("cartrom")->set_base(m_cart_rom->base());
261262}
262263
263264void leapster_state::machine_reset()
r242204r242205
265266}
266267
267268static ADDRESS_MAP_START( leapster_map, AS_PROGRAM, 32, leapster_state )
268   AM_RANGE(0x000000, 0x1fffff) AM_ROM
269   AM_RANGE(0x00000000, 0x001fffff) AM_ROM AM_MIRROR(0x40000000) // pointers in the bios region seem to be to the 40xxxxxx region, either we mirror there or something (real bios?) is acutally missing
270   AM_RANGE(0x80000000, 0x807fffff) AM_ROMBANK("cartrom") // game ROM pointers are all to the 80xxxxxx region, so I assume it maps here
271
269272ADDRESS_MAP_END
270273
271274static MACHINE_CONFIG_START( leapster, leapster_state )
r242204r242205
293296
294297ROM_START(leapster)
295298   ROM_REGION(0x200000, "maincpu", ROMREGION_ERASE00)
296   ROM_LOAD16_WORD_SWAP( "155-10072-a.bin", 0x00000, 0x200000, CRC(af05e5a0) SHA1(d4468d060543ba7e44785041093bc98bcd9afa07) )
299   ROM_LOAD( "155-10072-a.bin", 0x00000, 0x200000, CRC(af05e5a0) SHA1(d4468d060543ba7e44785041093bc98bcd9afa07) )
297300ROM_END
298301
299302ROM_START(leapstertv)
300303   ROM_REGION(0x200000, "maincpu", ROMREGION_ERASE00)
301   ROM_LOAD16_WORD_SWAP( "am29pl160cb-90sf.bin", 0x00000, 0x200000, BAD_DUMP CRC(dc281f1f) SHA1(17588de54ab3bb82801bd5062f3e6aa687412178) )
304   ROM_LOAD( "am29pl160cb-90sf.bin", 0x00000, 0x200000, BAD_DUMP CRC(dc281f1f) SHA1(17588de54ab3bb82801bd5062f3e6aa687412178) )
302305ROM_END
303306
304307


Previous 199869 Revisions Next


© 1997-2024 The MAME Team