src/mess/drivers/x1.c
| r7210 | r7211 | |
| 37 | 37 | does a 1->0 transition, any write to the i/o space accesses 2 or 3 banks gradients of the bitmap RAM |
| 38 | 38 | with a single write (generally used for layer clearances and bitmap-style sprites). |
| 39 | 39 | Any i/o read disables this extended bitmap ram. |
| 40 | - I/O port $700 bit 7 of X1 Turbo is a sound (dip-)switch / jumper setting. I don't know yet what is for, |
| 41 | but King's Knight needs it to be active otherwise it refuses to boot. |
| 40 | 42 | |
| 41 | 43 | ================================================================================================= |
| 42 | 44 | |
| r7210 | r7211 | |
| 1374 | 1376 | { |
| 1375 | 1377 | io_bank_mode = 0; //any read disables the extended mode. |
| 1376 | 1378 | |
| 1377 | | if(offset == 0x0700 || offset == 0x0701) { return ym2151_r(devtag_get_device(space->machine, "ym"), offset-0x0700); } |
| 1379 | if(offset == 0x0700) { return (ym2151_r(devtag_get_device(space->machine, "ym"), offset-0x0700) & 0x7f) | (input_port_read(space->machine, "SOUND_SW") & 0x80); } |
| 1380 | else if(offset == 0x0701) { return ym2151_r(devtag_get_device(space->machine, "ym"), offset-0x0700); } |
| 1378 | 1381 | else if(offset >= 0x0704 && offset <= 0x0707) { return z80ctc_r(devtag_get_device(space->machine, "ctc"), offset-0x0704); } |
| 1379 | 1382 | else if(offset == 0x0e03) { return x1_rom_r(space, 0); } |
| 1380 | 1383 | else if(offset >= 0x0e80 && offset <= 0x0e83) { return x1_kanji_r(space, offset-0xe80); } |
| r7210 | r7211 | |
| 1620 | 1623 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CHANGED(ipl_reset,0) PORT_NAME("IPL reset") |
| 1621 | 1624 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CHANGED(nmi_reset,0) PORT_NAME("NMI reset") |
| 1622 | 1625 | |
| 1626 | PORT_START("SOUND_SW") //FIXME: this is X1Turbo specific |
| 1627 | PORT_DIPNAME( 0x80, 0x80, "OPM Sound Setting?" ) |
| 1628 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1629 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1630 | |
| 1623 | 1631 | PORT_START("SYSTEM") |
| 1624 | 1632 | PORT_DIPNAME( 0x10, 0x10, "unk" ) |
| 1625 | 1633 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| r7210 | r7211 | |
| 1647 | 1655 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 1648 | 1656 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 1649 | 1657 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1650 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 1658 | PORT_DIPNAME( 0x80, 0x80, "Sound Setting?" ) |
| 1651 | 1659 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1652 | 1660 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1653 | 1661 | |
| r7210 | r7211 | |
| 2080 | 2088 | } |
| 2081 | 2089 | |
| 2082 | 2090 | static MACHINE_START( x1 ) |
| 2083 | | { |
| 2091 | { |
| 2084 | 2092 | timer_pulse(machine, ATTOTIME_IN_HZ(240), NULL, 0, keyboard_callback); |
| 2085 | 2093 | timer_pulse(machine, ATTOTIME_IN_HZ(16), NULL, 0, cmt_wind_timer); |
| 2086 | 2094 | } |