trunk/src/mess/drivers/leapster.c
| r242204 | r242205 | |
| 248 | 248 | { |
| 249 | 249 | UINT32 size = m_cart->common_get_size("rom"); |
| 250 | 250 | |
| 251 | | m_cart->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE); |
| 251 | m_cart->rom_alloc(size, GENERIC_ROM32_WIDTH, ENDIANNESS_LITTLE); |
| 252 | 252 | m_cart->common_load_rom(m_cart->get_rom_base(), size, "rom"); |
| 253 | 253 | |
| 254 | 254 | return IMAGE_INIT_PASS; |
| r242204 | r242205 | |
| 258 | 258 | { |
| 259 | 259 | astring region_tag; |
| 260 | 260 | m_cart_rom = memregion(region_tag.cpy(m_cart->tag()).cat(GENERIC_ROM_REGION_TAG)); |
| 261 | membank("cartrom")->set_base(m_cart_rom->base()); |
| 261 | 262 | } |
| 262 | 263 | |
| 263 | 264 | void leapster_state::machine_reset() |
| r242204 | r242205 | |
| 265 | 266 | } |
| 266 | 267 | |
| 267 | 268 | static 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 | |
| 269 | 272 | ADDRESS_MAP_END |
| 270 | 273 | |
| 271 | 274 | static MACHINE_CONFIG_START( leapster, leapster_state ) |
| r242204 | r242205 | |
| 293 | 296 | |
| 294 | 297 | ROM_START(leapster) |
| 295 | 298 | 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) ) |
| 297 | 300 | ROM_END |
| 298 | 301 | |
| 299 | 302 | ROM_START(leapstertv) |
| 300 | 303 | 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) ) |
| 302 | 305 | ROM_END |
| 303 | 306 | |
| 304 | 307 | |