src/mess/drivers/genesis.c
| r3028 | r3029 | |
| 63 | 63 | |
| 64 | 64 | static int genesis_last_loaded_image_length = -1; |
| 65 | 65 | |
| 66 | static int megadrive_region_export = 0; |
| 67 | static int megadrive_region_pal = 0; |
| 68 | |
| 66 | 69 | /* where a fresh copy of rom is stashed for reset and banking setup */ |
| 67 | 70 | #define VIRGIN_COPY_GEN 0xd00000 |
| 68 | 71 | |
| r3028 | r3029 | |
| 1442 | 1445 | |
| 1443 | 1446 | AM_RANGE(0x800000 , 0x80001f) AM_READ(pico_68k_io_read) |
| 1444 | 1447 | |
| 1445 | | AM_RANGE(0xc00000 , 0xc0001f) AM_READ(megadriv_vdp_r) |
| 1448 | // AM_RANGE(0xc00000 , 0xc0001f) AM_READ(megadriv_vdp_r) |
| 1446 | 1449 | AM_RANGE(0xe00000 , 0xe0ffff) AM_READ(SMH_RAM) AM_MIRROR(0x1f0000) |
| 1447 | 1450 | ADDRESS_MAP_END |
| 1448 | 1451 | |
| r3028 | r3029 | |
| 1451 | 1454 | |
| 1452 | 1455 | AM_RANGE(0x800000 , 0x80001f) AM_WRITE(pico_68k_io_write) |
| 1453 | 1456 | |
| 1454 | | AM_RANGE(0xc00000 , 0xc0001f) AM_WRITE(megadriv_vdp_w) |
| 1457 | // AM_RANGE(0xc00000 , 0xc0001f) AM_WRITE(megadriv_vdp_w) |
| 1455 | 1458 | AM_RANGE(0xe00000 , 0xe0ffff) AM_WRITE(SMH_RAM) AM_MIRROR(0x1f0000) AM_BASE(&megadrive_ram) |
| 1456 | 1459 | ADDRESS_MAP_END |
| 1457 | 1460 | |
| 1458 | 1461 | INPUT_PORTS_START( pico ) |
| 1459 | | PORT_START_TAG("PAD") |
| 1462 | PORT_START("PAD") |
| 1460 | 1463 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1461 | 1464 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1462 | 1465 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r3028 | r3029 | |
| 1464 | 1467 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("RED BUTTON") |
| 1465 | 1468 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("PEN BUTTON") |
| 1466 | 1469 | |
| 1467 | | PORT_START_TAG("PAGE") |
| 1470 | PORT_START("PAGE") |
| 1468 | 1471 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("Increment Page") |
| 1469 | 1472 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("Decrement Page") |
| 1470 | 1473 | |
| 1471 | | PORT_START_TAG("PENX") |
| 1474 | PORT_START("PENX") |
| 1472 | 1475 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(70) PORT_KEYDELTA(30) PORT_MINMAX(0, 255) PORT_CATEGORY(5) PORT_PLAYER(1) PORT_NAME("PEN X") |
| 1473 | | PORT_START_TAG("PENY") |
| 1476 | PORT_START("PENY") |
| 1474 | 1477 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(50) PORT_KEYDELTA(30) PORT_MINMAX(0,255 ) PORT_CATEGORY(5) PORT_PLAYER(1) PORT_NAME("PEN Y") |
| 1475 | 1478 | |
| 1476 | | PORT_START_TAG("REGION") /* Buttons on Genesis Console */ |
| 1479 | PORT_START("REGION") /* Buttons on Genesis Console */ |
| 1477 | 1480 | /* Region setting for Console */ |
| 1478 | 1481 | PORT_DIPNAME( 0x000f, 0x0000, DEF_STR( Region ) ) |
| 1479 | 1482 | PORT_DIPSETTING( 0x0000, "Use HazeMD Default Choice" ) |