src/mess/drivers/pc8801.c
| r10070 | r10071 | |
| 1149 | 1149 | PORT_DIPSETTING( 0x80, "9600bps" ) |
| 1150 | 1150 | PORT_DIPSETTING( 0x90, "19200bps" ) |
| 1151 | 1151 | |
| 1152 | PORT_START("OPNA") |
| 1153 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1154 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1155 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1156 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1157 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1158 | |
| 1159 | PORT_START("OPNB") |
| 1160 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1161 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 1162 | PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1163 | |
| 1152 | 1164 | PORT_START("MEM") |
| 1153 | 1165 | PORT_CONFNAME( 0x1f, 0x00, "Extension memory" ) |
| 1154 | 1166 | PORT_CONFSETTING( 0x00, DEF_STR( None ) ) |
| r10070 | r10071 | |
| 1212 | 1224 | pc8801_raise_irq(device->machine,4); |
| 1213 | 1225 | } |
| 1214 | 1226 | |
| 1227 | /* TODO: mouse routing (that's why I don't use DEVCB_INPUT_PORT here) */ |
| 1228 | static READ8_DEVICE_HANDLER( opn_porta_r ) { return input_port_read(device->machine, "OPNA"); } |
| 1229 | static READ8_DEVICE_HANDLER( opn_portb_r ) { return input_port_read(device->machine, "OPNB"); } |
| 1215 | 1230 | |
| 1216 | | static READ8_DEVICE_HANDLER( opn_dummy_input ) { return 0xff; } |
| 1217 | | |
| 1218 | 1231 | static const ym2203_interface pc88_ym2203_intf = |
| 1219 | 1232 | { |
| 1220 | 1233 | { |
| 1221 | 1234 | AY8910_LEGACY_OUTPUT, |
| 1222 | 1235 | AY8910_DEFAULT_LOADS, |
| 1223 | | DEVCB_HANDLER(opn_dummy_input), |
| 1224 | | DEVCB_HANDLER(opn_dummy_input), |
| 1236 | DEVCB_HANDLER(opn_porta_r), |
| 1237 | DEVCB_HANDLER(opn_portb_r), |
| 1225 | 1238 | DEVCB_NULL, |
| 1226 | 1239 | DEVCB_NULL |
| 1227 | 1240 | }, |