Previous 15994 Revisions Next

r7211 Sunday 31st January, 2010 at 20:31:21 UTC by Angelo Salese
[X1Turbo]: Hooked up OPM Sound Switch, needed by King's Knight booting
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r7210r7211
3737      does a 1->0 transition, any write to the i/o space accesses 2 or 3 banks gradients of the bitmap RAM
3838      with a single write (generally used for layer clearances and bitmap-style sprites).
3939      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.
4042
4143=================================================================================================
4244
r7210r7211
13741376{
13751377   io_bank_mode = 0; //any read disables the extended mode.
13761378
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); }
13781381   else if(offset >= 0x0704 && offset <= 0x0707)   { return z80ctc_r(devtag_get_device(space->machine, "ctc"), offset-0x0704); }
13791382   else if(offset == 0x0e03)                       { return x1_rom_r(space, 0); }
13801383   else if(offset >= 0x0e80 && offset <= 0x0e83)   { return x1_kanji_r(space, offset-0xe80); }
r7210r7211
16201623   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CHANGED(ipl_reset,0) PORT_NAME("IPL reset")
16211624   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CHANGED(nmi_reset,0) PORT_NAME("NMI reset")
16221625
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
16231631   PORT_START("SYSTEM")
16241632   PORT_DIPNAME( 0x10, 0x10, "unk" )
16251633   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
r7210r7211
16471655   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
16481656   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
16491657   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1650   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
1658   PORT_DIPNAME( 0x80, 0x80, "Sound Setting?" )
16511659   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
16521660   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
16531661
r7210r7211
20802088}
20812089
20822090static MACHINE_START( x1 )
2083{   
2091{
20842092   timer_pulse(machine, ATTOTIME_IN_HZ(240), NULL, 0, keyboard_callback);
20852093   timer_pulse(machine, ATTOTIME_IN_HZ(16), NULL, 0, cmt_wind_timer);
20862094}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team