Previous 199869 Revisions Next

r19818 Tuesday 25th December, 2012 at 19:22:34 UTC by Angelo Salese
Added 2 slots for cbus, now you can load two sound boards at once
[src/mess/drivers]pc9801.c
[src/mess/machine]pc9801_118.c pc9801_26.c pc9801_86.c

trunk/src/mess/drivers/pc9801.c
r19817r19818
6969    - Absolutely Mahjong: Transitions are too fast.
7070    - Agumix Selects!: needs GDC = 5 MHz, interlace doesn't work properly;
7171    - Alice no Yakata: doesn't set bitmap interlace properly, can't do disk swaps via the File Manager;
72    - Animahjong V3: accesses port 0x88;
7372    - Anniversary - Memories of Summer: thinks that a button is pressed;
7473    - Another Genesis: fails loading;
7574    - Apple Club 1: how to pass an hand?
r19817r19818
8281    - Bakasuka Wars: drawing seems busted (either mouse or upd7220)
8382    - Band-Kun: (how to run this without installing?)
8483    - Battle Chess: wants some dip-switches to be on in DSW4, too slow during IA thinking?
85   - Bishoujo Audition: Moans with a "(program) ended. remove the floppy disk and turn off the poewr."
84   - Bishoujo Audition: Moans with a "(program) ended. remove the floppy disk and turn off the power."
8685   - Bishoujo Hunter ZX: Doesn't color cycle at intro (seems stuck?), doesn't clear text selection at new game screen;
8786   - Bishoujo Shanshinkan: has white rectangles all over the place;
8887   - Bishoujo Tsuushin: hangs with a beep while writing some intro text;
r19817r19818
104103    - Policenauts: EMS error at boot;
105104
106105    Notes:
106    - Animahjong V3 is your typical game with dual sound board support (generally OPN is used for SFX / samples and OPNA for BGM).
107107    - Apple Club 1/2 needs data disks to load properly;
108108    - Beast Lord: needs a titan.fnt, in MS-DOS
109109
r19817r19818
37363736
37373737static MACHINE_CONFIG_FRAGMENT( pc9801_cbus )
37383738   MCFG_PC9801CBUS_SLOT_ADD("cbus0", pc9801_cbus, "pc9801_26", NULL)
3739//   MCFG_PC9801CBUS_SLOT_ADD("cbus1", pc9801_cbus, NULL, NULL)
3739   MCFG_PC9801CBUS_SLOT_ADD("cbus1", pc9801_cbus, NULL, NULL)
37403740//   TODO: six max slots
37413741MACHINE_CONFIG_END
37423742
trunk/src/mess/machine/pc9801_118.c
r19817r19818
66
77   TODO:
88   - preliminary, presumably needs CS-4231 too
9   - joystick code should be shared between -26, -86 and -118
910
1011***************************************************************************/
1112
r19817r19818
9697   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Joystick Button 2")
9798   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
9899
99//   PORT_START("OPN_DSW")
100//   PORT_CONFNAME( 0x01, 0x01, "PC-9801-118: Port Base" )
101//   PORT_CONFSETTING(    0x00, "0x088" )
102//   PORT_CONFSETTING(    0x01, "0x188" )
100   PORT_START("OPN3_DSW")
101   PORT_CONFNAME( 0x01, 0x00, "PC-9801-118: Port Base" )
102   PORT_CONFSETTING(    0x00, "0x088" )
103   PORT_CONFSETTING(    0x01, "0x188" )
103104INPUT_PORTS_END
104105
105106ioport_constructor pc9801_118_device::device_input_ports() const
r19817r19818
170171
171172void pc9801_118_device::device_start()
172173{
173   UINT16 port_base = 0x100;//(ioport("OPN_DSW")->read() & 1) << 8;
174   install_device(port_base + 0x0088, port_base + 0x008f, 0, 0, read8_delegate(FUNC(pc9801_118_device::pc9801_118_r), this), write8_delegate(FUNC(pc9801_118_device::pc9801_118_w), this) );
175   install_device(0xa460, 0xa463, 0, 0, read8_delegate(FUNC(pc9801_118_device::pc9801_118_ext_r), this), write8_delegate(FUNC(pc9801_118_device::pc9801_118_ext_w), this) );
176174}
177175
178176
r19817r19818
182180
183181void pc9801_118_device::device_reset()
184182{
183   UINT16 port_base = (ioport("OPN3_DSW")->read() & 1) << 8;
184   install_device(port_base + 0x0088, port_base + 0x008f, 0, 0, read8_delegate(FUNC(pc9801_118_device::pc9801_118_r), this), write8_delegate(FUNC(pc9801_118_device::pc9801_118_w), this) );
185   install_device(0xa460, 0xa463, 0, 0, read8_delegate(FUNC(pc9801_118_device::pc9801_118_ext_r), this), write8_delegate(FUNC(pc9801_118_device::pc9801_118_ext_w), this) );
185186   m_ext_reg = 1; // TODO: enabled or disabled?
186187}
187188
trunk/src/mess/machine/pc9801_86.c
r19817r19818
66   YM2203
77
88   TODO:
9   - i/o port base jumper
9   - joystick code should be shared between -26, -86 and -118
1010
1111***************************************************************************/
1212
r19817r19818
107107   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Joystick Button 2")
108108   PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED )
109109
110//   PORT_START("OPN_DSW")
111//   PORT_CONFNAME( 0x01, 0x01, "PC-9801-86: Port Base" )
112//   PORT_CONFSETTING(    0x00, "0x088" )
113//   PORT_CONFSETTING(    0x01, "0x188" )
110   PORT_START("OPNA_DSW")
111   PORT_CONFNAME( 0x01, 0x00, "PC-9801-86: Port Base" )
112   PORT_CONFSETTING(    0x00, "0x088" )
113   PORT_CONFSETTING(    0x01, "0x188" )
114114INPUT_PORTS_END
115115
116116ioport_constructor pc9801_86_device::device_input_ports() const
r19817r19818
171171
172172void pc9801_86_device::device_start()
173173{
174   UINT16 port_base = 0x100;//(ioport("OPN_DSW")->read() & 1) << 8;
175   install_device(port_base + 0x0088, port_base + 0x008f, 0, 0, read8_delegate(FUNC(pc9801_86_device::pc9801_86_r), this), write8_delegate(FUNC(pc9801_86_device::pc9801_86_w), this) );
176//   install_device(0xa460, 0xa463, 0, 0, read8_delegate(FUNC(pc9801_86_device::pc9801_86_ext_r), this), write8_delegate(FUNC(pc9801_86_device::pc9801_86_ext_w), this) );
177174
178175}
179176
r19817r19818
184181
185182void pc9801_86_device::device_reset()
186183{
184   UINT16 port_base = (ioport("OPNA_DSW")->read() & 1) << 8;
185   install_device(port_base + 0x0088, port_base + 0x008f, 0, 0, read8_delegate(FUNC(pc9801_86_device::pc9801_86_r), this), write8_delegate(FUNC(pc9801_86_device::pc9801_86_w), this) );
186//   install_device(0xa460, 0xa463, 0, 0, read8_delegate(FUNC(pc9801_86_device::pc9801_86_ext_r), this), write8_delegate(FUNC(pc9801_86_device::pc9801_86_ext_w), this) );
187
187188}
188189
189190
trunk/src/mess/machine/pc9801_26.c
r19817r19818
44
55   Legacy sound card for PC-98xx family, composed by a single YM2203
66
7   TODO:
8   - joystick code should be shared between -26, -86 and -118
9
710***************************************************************************/
811
912#include "emu.h"
r19817r19818
9699   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
97100   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
98101
99//   PORT_START("OPN_DSW")
100//   PORT_CONFNAME( 0x01, 0x01, "PC-9801-26: Port Base" )
101//   PORT_CONFSETTING(    0x00, "0x088" )
102//   PORT_CONFSETTING(    0x01, "0x188" )
102   PORT_START("OPN_DSW")
103   PORT_CONFNAME( 0x01, 0x01, "PC-9801-26: Port Base" )
104   PORT_CONFSETTING(    0x00, "0x088" )
105   PORT_CONFSETTING(    0x01, "0x188" )
103106INPUT_PORTS_END
104107
105108ioport_constructor pc9801_26_device::device_input_ports() const
r19817r19818
160163
161164void pc9801_26_device::device_start()
162165{
163   UINT16 port_base = 0x100;//(ioport("OPN_DSW")->read() & 1) << 8;
164   install_device(port_base + 0x0088, port_base + 0x008b, 0, 0, read8_delegate(FUNC(pc9801_26_device::pc9801_26_r), this), write8_delegate(FUNC(pc9801_26_device::pc9801_26_w), this) );
166
165167}
166168
167169
r19817r19818
171173
172174void pc9801_26_device::device_reset()
173175{
176   UINT16 port_base = (ioport("OPN_DSW")->read() & 1) << 8;
177   install_device(port_base + 0x0088, port_base + 0x008b, 0, 0, read8_delegate(FUNC(pc9801_26_device::pc9801_26_r), this), write8_delegate(FUNC(pc9801_26_device::pc9801_26_w), this) );
174178}
175179
176180

Previous 199869 Revisions Next


© 1997-2024 The MAME Team