trunk/src/emu/bus/abcbus/abc890.c
| r26149 | r26150 | |
| 20 | 20 | const device_type ABC890 = &device_creator<abc890_device>; |
| 21 | 21 | const device_type ABC894 = &device_creator<abc894_device>; |
| 22 | 22 | const device_type ABC850 = &device_creator<abc850_device>; |
| 23 | const device_type ABC852 = &device_creator<abc852_device>; |
| 24 | const device_type ABC856 = &device_creator<abc856_device>; |
| 23 | 25 | |
| 24 | 26 | |
| 25 | 27 | //------------------------------------------------- |
| r26149 | r26150 | |
| 76 | 78 | |
| 77 | 79 | static MACHINE_CONFIG_FRAGMENT( abc850 ) |
| 78 | 80 | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast") |
| 79 | | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) // TODO this does not work within a device |
| 81 | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) |
| 80 | 82 | MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec") |
| 83 | MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "ro202") |
| 81 | 84 | MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL) |
| 82 | 85 | MCFG_ABCBUS_SLOT_ADD("io4", abcbus_cards, NULL) |
| 83 | 86 | MCFG_ABCBUS_SLOT_ADD("io5", abcbus_cards, NULL) |
| r26149 | r26150 | |
| 97 | 100 | } |
| 98 | 101 | |
| 99 | 102 | |
| 103 | //------------------------------------------------- |
| 104 | // MACHINE_DRIVER( abc852 ) |
| 105 | //------------------------------------------------- |
| 100 | 106 | |
| 107 | static MACHINE_CONFIG_FRAGMENT( abc852 ) |
| 108 | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast") |
| 109 | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) |
| 110 | MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec") |
| 111 | MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "basf6185") |
| 112 | MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL) |
| 113 | MCFG_ABCBUS_SLOT_ADD("io4", abcbus_cards, NULL) |
| 114 | MCFG_ABCBUS_SLOT_ADD("io5", abcbus_cards, NULL) |
| 115 | MCFG_ABCBUS_SLOT_ADD("io6", abcbus_cards, NULL) |
| 116 | MCFG_ABCBUS_SLOT_ADD("io7", abcbus_cards, NULL) |
| 117 | MACHINE_CONFIG_END |
| 118 | |
| 119 | |
| 120 | //------------------------------------------------- |
| 121 | // machine_config_additions - device-specific |
| 122 | // machine configurations |
| 123 | //------------------------------------------------- |
| 124 | |
| 125 | machine_config_constructor abc852_device::device_mconfig_additions() const |
| 126 | { |
| 127 | return MACHINE_CONFIG_NAME( abc852 ); |
| 128 | } |
| 129 | |
| 130 | |
| 131 | //------------------------------------------------- |
| 132 | // MACHINE_DRIVER( abc856 ) |
| 133 | //------------------------------------------------- |
| 134 | |
| 135 | static MACHINE_CONFIG_FRAGMENT( abc856 ) |
| 136 | MCFG_ABCBUS_SLOT_ADD("io1", abcbus_cards, "fast") |
| 137 | MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("fast", abc850_fast) |
| 138 | MCFG_ABCBUS_SLOT_ADD("io2", abcbus_cards, "xebec") |
| 139 | MCFG_DEVICE_CARD_DEFAULT_BIOS("xebec", "micr1325") |
| 140 | MCFG_ABCBUS_SLOT_ADD("io3", abcbus_cards, NULL) |
| 141 | MCFG_ABCBUS_SLOT_ADD("io4", abcbus_cards, NULL) |
| 142 | MCFG_ABCBUS_SLOT_ADD("io5", abcbus_cards, NULL) |
| 143 | MCFG_ABCBUS_SLOT_ADD("io6", abcbus_cards, NULL) |
| 144 | MCFG_ABCBUS_SLOT_ADD("io7", abcbus_cards, NULL) |
| 145 | MACHINE_CONFIG_END |
| 146 | |
| 147 | |
| 148 | //------------------------------------------------- |
| 149 | // machine_config_additions - device-specific |
| 150 | // machine configurations |
| 151 | //------------------------------------------------- |
| 152 | |
| 153 | machine_config_constructor abc856_device::device_mconfig_additions() const |
| 154 | { |
| 155 | return MACHINE_CONFIG_NAME( abc856 ); |
| 156 | } |
| 157 | |
| 158 | |
| 159 | |
| 101 | 160 | //************************************************************************** |
| 102 | 161 | // LIVE DEVICE |
| 103 | 162 | //************************************************************************** |
| r26149 | r26150 | |
| 114 | 173 | |
| 115 | 174 | abc890_device::abc890_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 116 | 175 | : device_t(mconfig, ABC890, "ABC 890", tag, owner, clock, "abc890", __FILE__), |
| 117 | | device_abcbus_card_interface(mconfig, *this), |
| 118 | | m_slots(7) |
| 176 | device_abcbus_card_interface(mconfig, *this) |
| 119 | 177 | { |
| 120 | 178 | } |
| 121 | 179 | |
| 122 | 180 | abc894_device::abc894_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 123 | 181 | : abc890_device(mconfig, ABC894, "ABC 894", tag, owner, clock, "abc894", __FILE__) |
| 124 | 182 | { |
| 125 | | m_slots = 3; |
| 126 | 183 | } |
| 127 | 184 | |
| 128 | 185 | abc850_device::abc850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 129 | 186 | : abc890_device(mconfig, ABC850, "ABC 850", tag, owner, clock, "abc850", __FILE__) |
| 130 | 187 | { |
| 131 | | m_slots = 7; |
| 132 | 188 | } |
| 133 | 189 | |
| 190 | abc852_device::abc852_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 191 | : abc890_device(mconfig, ABC852, "ABC 852", tag, owner, clock, "abc852", __FILE__) |
| 192 | { |
| 193 | } |
| 134 | 194 | |
| 195 | abc856_device::abc856_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 196 | : abc890_device(mconfig, ABC856, "ABC 856", tag, owner, clock, "abc856", __FILE__) |
| 197 | { |
| 198 | } |
| 199 | |
| 200 | |
| 135 | 201 | //------------------------------------------------- |
| 136 | 202 | // device_start - device-specific startup |
| 137 | 203 | //------------------------------------------------- |
| 138 | 204 | |
| 139 | 205 | void abc890_device::device_start() |
| 140 | 206 | { |
| 141 | | // find devices |
| 142 | | m_expansion_slot[0] = dynamic_cast<abcbus_slot_device *>(subdevice("io1")); |
| 143 | | m_expansion_slot[1] = dynamic_cast<abcbus_slot_device *>(subdevice("io2")); |
| 144 | | m_expansion_slot[2] = dynamic_cast<abcbus_slot_device *>(subdevice("io3")); |
| 145 | | m_expansion_slot[3] = dynamic_cast<abcbus_slot_device *>(subdevice("io4")); |
| 146 | | m_expansion_slot[4] = dynamic_cast<abcbus_slot_device *>(subdevice("mem1")); |
| 147 | | m_expansion_slot[5] = dynamic_cast<abcbus_slot_device *>(subdevice("mem2")); |
| 148 | | m_expansion_slot[6] = dynamic_cast<abcbus_slot_device *>(subdevice("mem3")); |
| 149 | 207 | } |
| 150 | 208 | |
| 151 | | void abc894_device::device_start() |
| 152 | | { |
| 153 | | // find devices |
| 154 | | m_expansion_slot[0] = dynamic_cast<abcbus_slot_device *>(subdevice("io1")); |
| 155 | | m_expansion_slot[1] = dynamic_cast<abcbus_slot_device *>(subdevice("io2")); |
| 156 | | m_expansion_slot[2] = dynamic_cast<abcbus_slot_device *>(subdevice("io3")); |
| 157 | | } |
| 158 | 209 | |
| 159 | | void abc850_device::device_start() |
| 160 | | { |
| 161 | | // find devices |
| 162 | | m_expansion_slot[0] = dynamic_cast<abcbus_slot_device *>(subdevice("io1")); |
| 163 | | m_expansion_slot[1] = dynamic_cast<abcbus_slot_device *>(subdevice("io2")); |
| 164 | | m_expansion_slot[2] = dynamic_cast<abcbus_slot_device *>(subdevice("io3")); |
| 165 | | m_expansion_slot[3] = dynamic_cast<abcbus_slot_device *>(subdevice("io4")); |
| 166 | | m_expansion_slot[4] = dynamic_cast<abcbus_slot_device *>(subdevice("io5")); |
| 167 | | m_expansion_slot[5] = dynamic_cast<abcbus_slot_device *>(subdevice("io6")); |
| 168 | | m_expansion_slot[6] = dynamic_cast<abcbus_slot_device *>(subdevice("io7")); |
| 169 | | } |
| 170 | | |
| 171 | | |
| 172 | 210 | //------------------------------------------------- |
| 173 | 211 | // device_reset - device-specific reset |
| 174 | 212 | //------------------------------------------------- |
| 175 | 213 | |
| 176 | 214 | void abc890_device::device_reset() |
| 177 | 215 | { |
| 178 | | for (int i = 0; i < m_slots; i++) |
| 216 | for (device_t *device = first_subdevice(); device != NULL; device = device->next()) |
| 179 | 217 | { |
| 180 | | m_expansion_slot[i]->reset(); |
| 218 | device->reset(); |
| 181 | 219 | } |
| 182 | 220 | } |
| 183 | 221 | |
| 184 | 222 | |
| 223 | //------------------------------------------------- |
| 224 | // abcbus_cs - card select |
| 225 | //------------------------------------------------- |
| 185 | 226 | |
| 186 | | //************************************************************************** |
| 187 | | // ABC BUS INTERFACE |
| 188 | | //************************************************************************** |
| 189 | | |
| 190 | 227 | void abc890_device::abcbus_cs(UINT8 data) |
| 191 | 228 | { |
| 192 | | for (int i = 0; i < m_slots; i++) |
| 229 | abcbus_slot_device_iterator iter(*this); |
| 230 | |
| 231 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 193 | 232 | { |
| 194 | | m_expansion_slot[i]->cs_w(data); |
| 233 | slot->cs_w(data); |
| 195 | 234 | } |
| 196 | 235 | } |
| 197 | 236 | |
| 237 | |
| 238 | //------------------------------------------------- |
| 239 | // abcbus_inp - input |
| 240 | //------------------------------------------------- |
| 241 | |
| 198 | 242 | UINT8 abc890_device::abcbus_inp() |
| 199 | 243 | { |
| 200 | 244 | UINT8 data = 0xff; |
| 201 | 245 | |
| 202 | | for (int i = 0; i < m_slots; i++) |
| 246 | abcbus_slot_device_iterator iter(*this); |
| 247 | |
| 248 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 203 | 249 | { |
| 204 | | data &= m_expansion_slot[i]->inp_r(); |
| 250 | data &= slot->inp_r(); |
| 205 | 251 | } |
| 206 | 252 | |
| 207 | 253 | return data; |
| 208 | 254 | } |
| 209 | 255 | |
| 256 | |
| 257 | //------------------------------------------------- |
| 258 | // abcbus_out - output |
| 259 | //------------------------------------------------- |
| 260 | |
| 210 | 261 | void abc890_device::abcbus_out(UINT8 data) |
| 211 | 262 | { |
| 212 | | for (int i = 0; i < m_slots; i++) |
| 263 | abcbus_slot_device_iterator iter(*this); |
| 264 | |
| 265 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 213 | 266 | { |
| 214 | | m_expansion_slot[i]->out_w(data); |
| 267 | slot->out_w(data); |
| 215 | 268 | } |
| 216 | 269 | } |
| 217 | 270 | |
| 271 | |
| 272 | //------------------------------------------------- |
| 273 | // abcbus_stat - status |
| 274 | //------------------------------------------------- |
| 275 | |
| 218 | 276 | UINT8 abc890_device::abcbus_stat() |
| 219 | 277 | { |
| 220 | 278 | UINT8 data = 0xff; |
| 221 | 279 | |
| 222 | | for (int i = 0; i < m_slots; i++) |
| 280 | abcbus_slot_device_iterator iter(*this); |
| 281 | |
| 282 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 223 | 283 | { |
| 224 | | data &= m_expansion_slot[i]->stat_r(); |
| 284 | data &= slot->stat_r(); |
| 225 | 285 | } |
| 226 | 286 | |
| 227 | 287 | return data; |
| 228 | 288 | } |
| 229 | 289 | |
| 290 | |
| 291 | //------------------------------------------------- |
| 292 | // abcbus_c1 - command 1 |
| 293 | //------------------------------------------------- |
| 294 | |
| 230 | 295 | void abc890_device::abcbus_c1(UINT8 data) |
| 231 | 296 | { |
| 232 | | for (int i = 0; i < m_slots; i++) |
| 297 | abcbus_slot_device_iterator iter(*this); |
| 298 | |
| 299 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 233 | 300 | { |
| 234 | | m_expansion_slot[i]->c1_w(data); |
| 301 | slot->c1_w(data); |
| 235 | 302 | } |
| 236 | 303 | } |
| 237 | 304 | |
| 305 | |
| 306 | //------------------------------------------------- |
| 307 | // abcbus_c2 - command 2 |
| 308 | //------------------------------------------------- |
| 309 | |
| 238 | 310 | void abc890_device::abcbus_c2(UINT8 data) |
| 239 | 311 | { |
| 240 | | for (int i = 0; i < m_slots; i++) |
| 312 | abcbus_slot_device_iterator iter(*this); |
| 313 | |
| 314 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 241 | 315 | { |
| 242 | | m_expansion_slot[i]->c2_w(data); |
| 316 | slot->c2_w(data); |
| 243 | 317 | } |
| 244 | 318 | } |
| 245 | 319 | |
| 320 | |
| 321 | //------------------------------------------------- |
| 322 | // abcbus_c3 - command 3 |
| 323 | //------------------------------------------------- |
| 324 | |
| 246 | 325 | void abc890_device::abcbus_c3(UINT8 data) |
| 247 | 326 | { |
| 248 | | for (int i = 0; i < m_slots; i++) |
| 327 | abcbus_slot_device_iterator iter(*this); |
| 328 | |
| 329 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 249 | 330 | { |
| 250 | | m_expansion_slot[i]->c3_w(data); |
| 331 | slot->c3_w(data); |
| 251 | 332 | } |
| 252 | 333 | } |
| 253 | 334 | |
| 335 | |
| 336 | //------------------------------------------------- |
| 337 | // abcbus_c4 - command 4 |
| 338 | //------------------------------------------------- |
| 339 | |
| 254 | 340 | void abc890_device::abcbus_c4(UINT8 data) |
| 255 | 341 | { |
| 256 | | for (int i = 0; i < m_slots; i++) |
| 342 | abcbus_slot_device_iterator iter(*this); |
| 343 | |
| 344 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 257 | 345 | { |
| 258 | | m_expansion_slot[i]->c4_w(data); |
| 346 | slot->c4_w(data); |
| 259 | 347 | } |
| 260 | 348 | } |
| 261 | 349 | |
| 350 | |
| 351 | //------------------------------------------------- |
| 352 | // abcbus_xmemfl - extended memory read |
| 353 | //------------------------------------------------- |
| 354 | |
| 262 | 355 | UINT8 abc890_device::abcbus_xmemfl(offs_t offset) |
| 263 | 356 | { |
| 264 | 357 | UINT8 data = 0xff; |
| 265 | 358 | |
| 266 | | for (int i = 0; i < m_slots; i++) |
| 359 | abcbus_slot_device_iterator iter(*this); |
| 360 | |
| 361 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 267 | 362 | { |
| 268 | | data &= m_expansion_slot[i]->xmemfl_r(offset); |
| 363 | data &= slot->xmemfl_r(offset); |
| 269 | 364 | } |
| 270 | 365 | |
| 271 | 366 | return data; |
| 272 | 367 | } |
| 273 | 368 | |
| 369 | |
| 370 | //------------------------------------------------- |
| 371 | // abcbus_xmemw - extended memory write |
| 372 | //------------------------------------------------- |
| 373 | |
| 274 | 374 | void abc890_device::abcbus_xmemw(offs_t offset, UINT8 data) |
| 275 | 375 | { |
| 276 | | for (int i = 0; i < m_slots; i++) |
| 376 | abcbus_slot_device_iterator iter(*this); |
| 377 | |
| 378 | for (abcbus_slot_device *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 277 | 379 | { |
| 278 | | m_expansion_slot[i]->xmemw_w(offset, data); |
| 380 | slot->xmemw_w(offset, data); |
| 279 | 381 | } |
| 280 | 382 | } |
trunk/src/emu/bus/abcbus/lux21046.c
| r26149 | r26150 | |
| 97 | 97 | //************************************************************************** |
| 98 | 98 | |
| 99 | 99 | const device_type LUXOR_55_21046 = &device_creator<luxor_55_21046_device>; |
| 100 | const device_type ABC830 = &device_creator<abc830_device>; |
| 101 | const device_type ABC832 = &device_creator<abc832_device>; |
| 102 | const device_type ABC834 = &device_creator<abc834_device>; |
| 103 | const device_type ABC838 = &device_creator<abc838_device>; |
| 100 | 104 | |
| 101 | 105 | |
| 102 | 106 | //------------------------------------------------- |
| r26149 | r26150 | |
| 284 | 288 | |
| 285 | 289 | |
| 286 | 290 | //------------------------------------------------- |
| 287 | | // MACHINE_DRIVER( luxor_55_21046 ) |
| 291 | // MACHINE_CONFIG( luxor_55_21046 ) |
| 288 | 292 | //------------------------------------------------- |
| 289 | 293 | |
| 290 | 294 | static MACHINE_CONFIG_FRAGMENT( luxor_55_21046 ) |
| r26149 | r26150 | |
| 301 | 305 | |
| 302 | 306 | |
| 303 | 307 | //------------------------------------------------- |
| 308 | // MACHINE_CONFIG( abc838 ) |
| 309 | //------------------------------------------------- |
| 310 | |
| 311 | static MACHINE_CONFIG_DERIVED( abc838, luxor_55_21046 ) |
| 312 | MCFG_DEVICE_MODIFY(SAB1793_TAG":0") |
| 313 | MCFG_DEVICE_SLOT_INTERFACE(abc_floppies, "8dsdd", false) |
| 314 | MCFG_DEVICE_MODIFY(SAB1793_TAG":1") |
| 315 | MCFG_DEVICE_SLOT_INTERFACE(abc_floppies, "8dsdd", false) |
| 316 | MACHINE_CONFIG_END |
| 317 | |
| 318 | |
| 319 | //------------------------------------------------- |
| 304 | 320 | // machine_config_additions - device-specific |
| 305 | 321 | // machine configurations |
| 306 | 322 | //------------------------------------------------- |
| r26149 | r26150 | |
| 310 | 326 | return MACHINE_CONFIG_NAME( luxor_55_21046 ); |
| 311 | 327 | } |
| 312 | 328 | |
| 329 | machine_config_constructor abc838_device::device_mconfig_additions() const |
| 330 | { |
| 331 | return MACHINE_CONFIG_NAME( abc838 ); |
| 332 | } |
| 313 | 333 | |
| 334 | |
| 314 | 335 | //------------------------------------------------- |
| 315 | 336 | // INPUT_PORTS( luxor_55_21046 ) |
| 316 | 337 | //------------------------------------------------- |
| r26149 | r26150 | |
| 340 | 361 | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sides" ) PORT_DIPLOCATION("SW1:2") PORT_CONDITION("SW3", 0x7f, EQUALS, 0x2c) |
| 341 | 362 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 342 | 363 | PORT_DIPSETTING( 0x02, "Double" ) |
| 343 | | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("SW3", 0x7f, EQUALS, 0x2c) |
| 344 | | PORT_DIPSETTING( 0x00, "80" ) |
| 345 | | PORT_DIPSETTING( 0x04, "40" ) |
| 346 | | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("SW3", 0x7f, EQUALS, 0x2c) |
| 347 | | PORT_DIPSETTING( 0x00, "80" ) |
| 348 | | PORT_DIPSETTING( 0x08, "40" ) |
| 364 | PORT_DIPNAME( 0x04, 0x04, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") PORT_CONDITION("SW3", 0x7f, EQUALS, 0x2c) |
| 365 | PORT_DIPSETTING( 0x00, "40" ) |
| 366 | PORT_DIPSETTING( 0x04, "80" ) |
| 367 | PORT_DIPNAME( 0x08, 0x08, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") PORT_CONDITION("SW3", 0x7f, EQUALS, 0x2c) |
| 368 | PORT_DIPSETTING( 0x00, "40" ) |
| 369 | PORT_DIPSETTING( 0x08, "80" ) |
| 349 | 370 | |
| 350 | 371 | PORT_START("SW2") |
| 351 | 372 | PORT_DIPNAME( 0x0f, 0x01, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| r26149 | r26150 | |
| 388 | 409 | |
| 389 | 410 | |
| 390 | 411 | //------------------------------------------------- |
| 412 | // INPUT_PORTS( abc830 ) |
| 413 | //------------------------------------------------- |
| 414 | |
| 415 | INPUT_PORTS_START( abc830 ) |
| 416 | PORT_START("SW1") |
| 417 | PORT_DIPNAME( 0x01, 0x00, "Drive 0 Sides" ) PORT_DIPLOCATION("SW1:1") |
| 418 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 419 | PORT_DIPSETTING( 0x01, "Double" ) |
| 420 | PORT_DIPNAME( 0x02, 0x00, "Drive 1 Sides" ) PORT_DIPLOCATION("SW1:2") |
| 421 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 422 | PORT_DIPSETTING( 0x02, "Double" ) |
| 423 | PORT_DIPNAME( 0x04, 0x00, "Drive 0 Density" ) PORT_DIPLOCATION("SW1:3") |
| 424 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 425 | PORT_DIPSETTING( 0x04, "Double" ) |
| 426 | PORT_DIPNAME( 0x08, 0x00, "Drive 1 Density" ) PORT_DIPLOCATION("SW1:4") |
| 427 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 428 | PORT_DIPSETTING( 0x08, "Double" ) |
| 429 | |
| 430 | PORT_START("SW2") |
| 431 | PORT_DIPNAME( 0x0f, 0x08, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| 432 | PORT_DIPSETTING( 0x08, "BASF 6106/08" ) |
| 433 | PORT_DIPSETTING( 0x09, "MPI 51" ) |
| 434 | |
| 435 | PORT_START("SW3") |
| 436 | PORT_DIPNAME( 0x7f, 0x2d, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7") |
| 437 | PORT_DIPSETTING( 0x2d, "45" ) |
| 438 | |
| 439 | PORT_START("S1") // also S3,S5 |
| 440 | PORT_DIPNAME( 0x01, 0x01, "Interface Type" ) |
| 441 | PORT_DIPSETTING( 0x00, "ABC 1600" ) |
| 442 | PORT_DIPSETTING( 0x01, "ABC 80/800/802/806" ) |
| 443 | |
| 444 | PORT_START("S6") |
| 445 | PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) |
| 446 | PORT_DIPSETTING( 0x00, "2 KB" ) |
| 447 | PORT_DIPSETTING( 0x01, "8 KB" ) |
| 448 | |
| 449 | PORT_START("S8") |
| 450 | PORT_DIPNAME( 0x01, 0x01, "Drive Type" ) |
| 451 | PORT_DIPSETTING( 0x00, "8\"" ) |
| 452 | PORT_DIPSETTING( 0x01, "5.25\"" ) |
| 453 | |
| 454 | PORT_START("S9") |
| 455 | PORT_DIPNAME( 0x01, 0x01, "RDY Pin" ) |
| 456 | PORT_DIPSETTING( 0x00, "P2-6 (8\")" ) |
| 457 | PORT_DIPSETTING( 0x01, "P2-34 (5.25\")" ) |
| 458 | INPUT_PORTS_END |
| 459 | |
| 460 | |
| 461 | //------------------------------------------------- |
| 462 | // INPUT_PORTS( abc832 ) |
| 463 | //------------------------------------------------- |
| 464 | |
| 465 | INPUT_PORTS_START( abc832 ) |
| 466 | PORT_START("SW1") |
| 467 | PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sides" ) PORT_DIPLOCATION("SW1:1") |
| 468 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 469 | PORT_DIPSETTING( 0x01, "Double" ) |
| 470 | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sides" ) PORT_DIPLOCATION("SW1:2") |
| 471 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 472 | PORT_DIPSETTING( 0x02, "Double" ) |
| 473 | PORT_DIPNAME( 0x04, 0x04, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") |
| 474 | PORT_DIPSETTING( 0x00, "40" ) |
| 475 | PORT_DIPSETTING( 0x04, "80" ) |
| 476 | PORT_DIPNAME( 0x08, 0x08, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") |
| 477 | PORT_DIPSETTING( 0x00, "40" ) |
| 478 | PORT_DIPSETTING( 0x08, "80" ) |
| 479 | |
| 480 | PORT_START("SW2") |
| 481 | PORT_DIPNAME( 0x0f, 0x04, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| 482 | PORT_DIPSETTING( 0x03, "Micropolis 1015F" ) |
| 483 | PORT_DIPSETTING( 0x04, "BASF 6118" ) |
| 484 | PORT_DIPSETTING( 0x05, "Micropolis 1115F" ) |
| 485 | |
| 486 | PORT_START("SW3") |
| 487 | PORT_DIPNAME( 0x7f, 0x2c, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7") |
| 488 | PORT_DIPSETTING( 0x2c, "44" ) |
| 489 | |
| 490 | PORT_START("S1") // also S3,S5 |
| 491 | PORT_DIPNAME( 0x01, 0x01, "Interface Type" ) |
| 492 | PORT_DIPSETTING( 0x00, "ABC 1600" ) |
| 493 | PORT_DIPSETTING( 0x01, "ABC 80/800/802/806" ) |
| 494 | |
| 495 | PORT_START("S6") |
| 496 | PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) |
| 497 | PORT_DIPSETTING( 0x00, "2 KB" ) |
| 498 | PORT_DIPSETTING( 0x01, "8 KB" ) |
| 499 | |
| 500 | PORT_START("S8") |
| 501 | PORT_DIPNAME( 0x01, 0x01, "Drive Type" ) |
| 502 | PORT_DIPSETTING( 0x00, "8\"" ) |
| 503 | PORT_DIPSETTING( 0x01, "5.25\"" ) |
| 504 | |
| 505 | PORT_START("S9") |
| 506 | PORT_DIPNAME( 0x01, 0x01, "RDY Pin" ) |
| 507 | PORT_DIPSETTING( 0x00, "P2-6 (8\")" ) |
| 508 | PORT_DIPSETTING( 0x01, "P2-34 (5.25\")" ) |
| 509 | INPUT_PORTS_END |
| 510 | |
| 511 | |
| 512 | //------------------------------------------------- |
| 513 | // INPUT_PORTS( abc834 ) |
| 514 | //------------------------------------------------- |
| 515 | |
| 516 | INPUT_PORTS_START( abc834 ) |
| 517 | PORT_START("SW1") |
| 518 | PORT_DIPNAME( 0x01, 0x01, "Drive 0 Sides" ) PORT_DIPLOCATION("SW1:1") |
| 519 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 520 | PORT_DIPSETTING( 0x01, "Double" ) |
| 521 | PORT_DIPNAME( 0x02, 0x02, "Drive 1 Sides" ) PORT_DIPLOCATION("SW1:2") |
| 522 | PORT_DIPSETTING( 0x00, DEF_STR( Single ) ) |
| 523 | PORT_DIPSETTING( 0x02, "Double" ) |
| 524 | PORT_DIPNAME( 0x04, 0x04, "Drive 0 Tracks" ) PORT_DIPLOCATION("SW1:3") |
| 525 | PORT_DIPSETTING( 0x00, "40" ) |
| 526 | PORT_DIPSETTING( 0x04, "80" ) |
| 527 | PORT_DIPNAME( 0x08, 0x08, "Drive 1 Tracks" ) PORT_DIPLOCATION("SW1:4") |
| 528 | PORT_DIPSETTING( 0x00, "40" ) |
| 529 | PORT_DIPSETTING( 0x08, "80" ) |
| 530 | |
| 531 | PORT_START("SW2") |
| 532 | PORT_DIPNAME( 0x0f, 0x01, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| 533 | PORT_DIPSETTING( 0x01, "TEAC FD55F" ) |
| 534 | |
| 535 | PORT_START("SW3") |
| 536 | PORT_DIPNAME( 0x7f, 0x2c, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7") |
| 537 | PORT_DIPSETTING( 0x2c, "44" ) |
| 538 | |
| 539 | PORT_START("S1") // also S3,S5 |
| 540 | PORT_DIPNAME( 0x01, 0x01, "Interface Type" ) |
| 541 | PORT_DIPSETTING( 0x00, "ABC 1600" ) |
| 542 | PORT_DIPSETTING( 0x01, "ABC 80/800/802/806" ) |
| 543 | |
| 544 | PORT_START("S6") |
| 545 | PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) |
| 546 | PORT_DIPSETTING( 0x00, "2 KB" ) |
| 547 | PORT_DIPSETTING( 0x01, "8 KB" ) |
| 548 | |
| 549 | PORT_START("S8") |
| 550 | PORT_DIPNAME( 0x01, 0x01, "Drive Type" ) |
| 551 | PORT_DIPSETTING( 0x00, "8\"" ) |
| 552 | PORT_DIPSETTING( 0x01, "5.25\"" ) |
| 553 | |
| 554 | PORT_START("S9") |
| 555 | PORT_DIPNAME( 0x01, 0x01, "RDY Pin" ) |
| 556 | PORT_DIPSETTING( 0x00, "P2-6 (8\")" ) |
| 557 | PORT_DIPSETTING( 0x01, "P2-34 (5.25\")" ) |
| 558 | INPUT_PORTS_END |
| 559 | |
| 560 | |
| 561 | //------------------------------------------------- |
| 562 | // INPUT_PORTS( abc838 ) |
| 563 | //------------------------------------------------- |
| 564 | |
| 565 | INPUT_PORTS_START( abc838 ) |
| 566 | PORT_START("SW1") |
| 567 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW1:1,2,3,4") |
| 568 | PORT_DIPSETTING( 0x00, DEF_STR( Unused ) ) |
| 569 | |
| 570 | PORT_START("SW2") |
| 571 | PORT_DIPNAME( 0x0f, 0x0e, "Drive Type" ) PORT_DIPLOCATION("SW2:1,2,3,4") |
| 572 | PORT_DIPSETTING( 0x0e, "BASF 6105" ) |
| 573 | PORT_DIPSETTING( 0x0f, "BASF 6106" ) |
| 574 | |
| 575 | PORT_START("SW3") |
| 576 | PORT_DIPNAME( 0x7f, 0x2e, "Card Address" ) PORT_DIPLOCATION("SW3:1,2,3,4,5,6,7") |
| 577 | PORT_DIPSETTING( 0x2e, "46" ) |
| 578 | |
| 579 | PORT_START("S1") // also S3,S5 |
| 580 | PORT_DIPNAME( 0x01, 0x01, "Interface Type" ) |
| 581 | PORT_DIPSETTING( 0x00, "ABC 1600" ) |
| 582 | PORT_DIPSETTING( 0x01, "ABC 80/800/802/806" ) |
| 583 | |
| 584 | PORT_START("S6") |
| 585 | PORT_DIPNAME( 0x01, 0x01, "RAM Size" ) |
| 586 | PORT_DIPSETTING( 0x00, "2 KB" ) |
| 587 | PORT_DIPSETTING( 0x01, "8 KB" ) |
| 588 | |
| 589 | PORT_START("S8") |
| 590 | PORT_DIPNAME( 0x01, 0x00, "Drive Type" ) |
| 591 | PORT_DIPSETTING( 0x00, "8\"" ) |
| 592 | PORT_DIPSETTING( 0x01, "5.25\"" ) |
| 593 | |
| 594 | PORT_START("S9") |
| 595 | PORT_DIPNAME( 0x01, 0x00, "RDY Pin" ) |
| 596 | PORT_DIPSETTING( 0x00, "P2-6 (8\")" ) |
| 597 | PORT_DIPSETTING( 0x01, "P2-34 (5.25\")" ) |
| 598 | INPUT_PORTS_END |
| 599 | |
| 600 | |
| 601 | //------------------------------------------------- |
| 391 | 602 | // input_ports - device-specific input ports |
| 392 | 603 | //------------------------------------------------- |
| 393 | 604 | |
| r26149 | r26150 | |
| 396 | 607 | return INPUT_PORTS_NAME( luxor_55_21046 ); |
| 397 | 608 | } |
| 398 | 609 | |
| 610 | ioport_constructor abc830_device::device_input_ports() const |
| 611 | { |
| 612 | return INPUT_PORTS_NAME( abc830 ); |
| 613 | } |
| 399 | 614 | |
| 615 | ioport_constructor abc832_device::device_input_ports() const |
| 616 | { |
| 617 | return INPUT_PORTS_NAME( abc832 ); |
| 618 | } |
| 400 | 619 | |
| 620 | ioport_constructor abc834_device::device_input_ports() const |
| 621 | { |
| 622 | return INPUT_PORTS_NAME( abc834 ); |
| 623 | } |
| 624 | |
| 625 | ioport_constructor abc838_device::device_input_ports() const |
| 626 | { |
| 627 | return INPUT_PORTS_NAME( abc838 ); |
| 628 | } |
| 629 | |
| 630 | |
| 631 | |
| 401 | 632 | //************************************************************************** |
| 402 | 633 | // LIVE DEVICE |
| 403 | 634 | //************************************************************************** |
| r26149 | r26150 | |
| 426 | 657 | { |
| 427 | 658 | } |
| 428 | 659 | |
| 660 | luxor_55_21046_device::luxor_55_21046_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) |
| 661 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), |
| 662 | device_abcbus_card_interface(mconfig, *this), |
| 663 | m_maincpu(*this, Z80_TAG), |
| 664 | m_dma(*this, Z80DMA_TAG), |
| 665 | m_fdc(*this, SAB1793_TAG), |
| 666 | m_floppy0(*this, SAB1793_TAG":0"), |
| 667 | m_floppy1(*this, SAB1793_TAG":1"), |
| 668 | m_floppy(NULL), |
| 669 | m_sw1(*this, "SW1"), |
| 670 | m_sw2(*this, "SW2"), |
| 671 | m_sw3(*this, "SW3"), |
| 672 | m_cs(false), |
| 673 | m_fdc_irq(0), |
| 674 | m_dma_irq(0), |
| 675 | m_busy(0), |
| 676 | m_force_busy(0) |
| 677 | { |
| 678 | } |
| 429 | 679 | |
| 680 | abc830_device::abc830_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 681 | : luxor_55_21046_device(mconfig, ABC830, "ABC 830", tag, owner, clock, "lux21046", __FILE__) |
| 682 | { |
| 683 | } |
| 684 | |
| 685 | abc832_device::abc832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 686 | : luxor_55_21046_device(mconfig, ABC832, "ABC 832", tag, owner, clock, "lux21046", __FILE__) |
| 687 | { |
| 688 | } |
| 689 | |
| 690 | abc834_device::abc834_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 691 | : luxor_55_21046_device(mconfig, ABC834, "ABC 834", tag, owner, clock, "lux21046", __FILE__) |
| 692 | { |
| 693 | } |
| 694 | |
| 695 | abc838_device::abc838_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 696 | : luxor_55_21046_device(mconfig, ABC838, "ABC 838", tag, owner, clock, "lux21046", __FILE__) |
| 697 | { |
| 698 | } |
| 699 | |
| 700 | |
| 430 | 701 | //------------------------------------------------- |
| 431 | 702 | // device_start - device-specific startup |
| 432 | 703 | //------------------------------------------------- |
| r26149 | r26150 | |
| 794 | 1065 | //************************************************************************** |
| 795 | 1066 | |
| 796 | 1067 | //------------------------------------------------- |
| 797 | | // DEVICE_INPUT_DEFAULTS( abc830_fast_intf ) |
| 798 | | //------------------------------------------------- |
| 799 | | |
| 800 | | DEVICE_INPUT_DEFAULTS_START( abc830_fast ) |
| 801 | | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x03) |
| 802 | | DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_BASF_6106_08) |
| 803 | | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC830) |
| 804 | | DEVICE_INPUT_DEFAULTS_END |
| 805 | | |
| 806 | | |
| 807 | | //------------------------------------------------- |
| 808 | | // DEVICE_INPUT_DEFAULTS( abc832_fast ) |
| 809 | | //------------------------------------------------- |
| 810 | | |
| 811 | | DEVICE_INPUT_DEFAULTS_START( abc832_fast ) |
| 812 | | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x03) |
| 813 | | DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_TEAC_FD55F) |
| 814 | | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC832) |
| 815 | | DEVICE_INPUT_DEFAULTS_END |
| 816 | | |
| 817 | | |
| 818 | | //------------------------------------------------- |
| 819 | | // DEVICE_INPUT_DEFAULTS( abc834_fast ) |
| 820 | | //------------------------------------------------- |
| 821 | | |
| 822 | | DEVICE_INPUT_DEFAULTS_START( abc834_fast ) |
| 823 | | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x03) |
| 824 | | DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_TEAC_FD55F) |
| 825 | | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC832) |
| 826 | | DEVICE_INPUT_DEFAULTS_END |
| 827 | | |
| 828 | | |
| 829 | | //------------------------------------------------- |
| 830 | | // DEVICE_INPUT_DEFAULTS( abc838_fast ) |
| 831 | | //------------------------------------------------- |
| 832 | | |
| 833 | | DEVICE_INPUT_DEFAULTS_START( abc838_fast ) |
| 834 | | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x03) |
| 835 | | DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_BASF_6105) |
| 836 | | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC838) |
| 837 | | DEVICE_INPUT_DEFAULTS_END |
| 838 | | |
| 839 | | |
| 840 | | //------------------------------------------------- |
| 841 | 1068 | // DEVICE_INPUT_DEFAULTS( abc850_fast ) |
| 842 | 1069 | //------------------------------------------------- |
| 843 | 1070 | |
| 844 | 1071 | DEVICE_INPUT_DEFAULTS_START( abc850_fast ) |
| 845 | | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x03) |
| 1072 | DEVICE_INPUT_DEFAULTS("SW1", 0x0f, 0x0f) |
| 846 | 1073 | DEVICE_INPUT_DEFAULTS("SW2", 0x0f, DRIVE_BASF_6138) |
| 847 | | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC830) |
| 1074 | DEVICE_INPUT_DEFAULTS("SW3", 0x7f, ADDRESS_ABC832) |
| 848 | 1075 | DEVICE_INPUT_DEFAULTS_END |