src/mess/drivers/pegasus.c
| r7950 | r7951 | |
| 122 | 122 | |
| 123 | 123 | static ADDRESS_MAP_START(pegasus_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 124 | 124 | ADDRESS_MAP_UNMAP_HIGH |
| 125 | | AM_RANGE(0x0000, 0x1fff) AM_ROM AM_WRITENOP |
| 125 | AM_RANGE(0x0000, 0x2fff) AM_ROM |
| 126 | 126 | AM_RANGE(0xb000, 0xbdff) AM_RAM |
| 127 | 127 | AM_RANGE(0xbe00, 0xbfff) AM_RAM AM_BASE(&pegasus_video_ram) |
| 128 | 128 | AM_RANGE(0xc000, 0xdfff) AM_ROM AM_WRITENOP |
| r7950 | r7951 | |
| 295 | 295 | |
| 296 | 296 | static DEVICE_IMAGE_LOAD( pegasus_cart_3 ) |
| 297 | 297 | { |
| 298 | | image_fread(image, memory_region(image->machine, "maincpu") + 0xc000, 0x1000); |
| 298 | image_fread(image, memory_region(image->machine, "maincpu") + 0x2000, 0x1000); |
| 299 | 299 | pegasus_decrypt_rom( image->machine, 0xc000 ); |
| 300 | 300 | |
| 301 | 301 | return INIT_PASS; |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | | static DEVICE_IMAGE_LOAD( pegasus_cart_4 ) |
| 305 | | { |
| 306 | | image_fread(image, memory_region(image->machine, "maincpu") + 0xd000, 0x1000); |
| 307 | | pegasus_decrypt_rom( image->machine, 0xd000 ); |
| 308 | | |
| 309 | | return INIT_PASS; |
| 310 | | } |
| 311 | | |
| 312 | 304 | static MACHINE_START( pegasus ) |
| 313 | 305 | { |
| 314 | 306 | pegasus_cass = devtag_get_device(machine, "cassette"); |
| r7950 | r7951 | |
| 358 | 350 | MDRV_CARTSLOT_ADD("cart3") |
| 359 | 351 | MDRV_CARTSLOT_EXTENSION_LIST("bin") |
| 360 | 352 | MDRV_CARTSLOT_LOAD(pegasus_cart_3) |
| 361 | | MDRV_CARTSLOT_ADD("cart4") |
| 362 | | MDRV_CARTSLOT_EXTENSION_LIST("bin") |
| 363 | | MDRV_CARTSLOT_LOAD(pegasus_cart_4) |
| 364 | 353 | MDRV_CASSETTE_ADD( "cassette", pegasus_cassette_config ) |
| 365 | 354 | MACHINE_DRIVER_END |
| 366 | 355 | |