src/mess/drivers/abc1600.c
| r13040 | r13041 | |
| 10 | 10 | |
| 11 | 11 | TODO: |
| 12 | 12 | |
| 13 | | - login root fails with incorrect password |
| 14 | 13 | - floppy |
| 15 | 14 | - internal floppy is really drive 2, but wd17xx.c doesn't like having NULL drives |
| 16 | 15 | - BUS0I/0X/1/2 |
| 16 | - how to determine which bus is accessed? |
| 17 | 17 | - short/long reset (RSTBUT) |
| 18 | 18 | - CIO |
| 19 | 19 | - vectored interrupts with status |
| r13040 | r13041 | |
| 23 | 23 | - counter 1 disabled |
| 24 | 24 | - counter 2 enabled, TC=000d, IE=0, output to PB0 |
| 25 | 25 | - counter 3 enabled, TC=9c40, IE=1 |
| 26 | | - hard disk (Xebec S1410) |
| 26 | - hard disk |
| 27 | - 4105 sasi interface card |
| 28 | - sasi interface |
| 29 | - Xebec S1410 card |
| 27 | 30 | |
| 28 | 31 | */ |
| 29 | 32 | |
| r13040 | r13041 | |
| 140 | 143 | } |
| 141 | 144 | else |
| 142 | 145 | { |
| 143 | | if (LOG) logerror("Unmapped read from virtual memory %06x\n", offset); |
| 146 | logerror("%s Unmapped read from virtual memory %06x\n", machine().describe_context(), offset); |
| 144 | 147 | } |
| 145 | 148 | |
| 146 | 149 | return data; |
| r13040 | r13041 | |
| 167 | 170 | } |
| 168 | 171 | else |
| 169 | 172 | { |
| 170 | | if (LOG) logerror("Unmapped write to virtual memory %06x : %02x\n", offset, data); |
| 173 | logerror("%s Unmapped write to virtual memory %06x : %02x\n", machine().describe_context(), offset, data); |
| 171 | 174 | } |
| 172 | 175 | } |
| 173 | 176 | |
| r13040 | r13041 | |
| 192 | 195 | break; |
| 193 | 196 | |
| 194 | 197 | default: |
| 195 | | logerror("Unmapped read from virtual I/O %06x\n", offset); |
| 198 | logerror("%s Unmapped read from virtual I/O %06x\n", machine().describe_context(), offset); |
| 196 | 199 | } |
| 197 | 200 | } |
| 198 | 201 | else |
| r13040 | r13041 | |
| 239 | 242 | else |
| 240 | 243 | { |
| 241 | 244 | // BUS0I, BUS0X, BUS1, BUS2 |
| 242 | | //UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f); |
| 245 | UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f); |
| 243 | 246 | |
| 244 | 247 | switch ((offset >> 1) & 0x07) |
| 245 | 248 | { |
| 246 | 249 | case 0: // INP |
| 250 | logerror("%s INP %02x\n", machine().describe_context(), cs); |
| 247 | 251 | break; |
| 248 | 252 | |
| 249 | 253 | case 1: // STAT |
| 254 | logerror("%s STAT %02x\n", machine().describe_context(), cs); |
| 250 | 255 | break; |
| 251 | 256 | |
| 252 | 257 | case 2: // OPS |
| 258 | logerror("%s OPS %02x\n", machine().describe_context(), cs); |
| 253 | 259 | break; |
| 260 | |
| 261 | default: |
| 262 | logerror("%s Unmapped read from virtual I/O %06x\n", machine().describe_context(), offset); |
| 254 | 263 | } |
| 255 | | |
| 256 | | logerror("Unmapped read from virtual I/O %06x\n", offset); |
| 257 | 264 | } |
| 258 | 265 | |
| 259 | 266 | return data; |
| r13040 | r13041 | |
| 296 | 303 | } |
| 297 | 304 | else |
| 298 | 305 | { |
| 299 | | logerror("Unmapped write to virtual I/O %06x : %02x\n", offset, data); |
| 306 | logerror("%s Unmapped write to virtual I/O %06x : %02x\n", offset, data); |
| 300 | 307 | } |
| 301 | 308 | break; |
| 302 | 309 | |
| r13040 | r13041 | |
| 309 | 316 | break; |
| 310 | 317 | |
| 311 | 318 | default: |
| 312 | | logerror("Unmapped write to virtual I/O %06x : %02x\n", offset, data); |
| 319 | logerror("%s Unmapped write to virtual I/O %06x : %02x\n", machine().describe_context(), offset, data); |
| 313 | 320 | } |
| 314 | 321 | } |
| 315 | 322 | else |
| r13040 | r13041 | |
| 355 | 362 | } |
| 356 | 363 | else |
| 357 | 364 | { |
| 358 | | //UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f); |
| 365 | UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f); |
| 359 | 366 | |
| 360 | 367 | switch ((offset >> 1) & 0x07) |
| 361 | 368 | { |
| 362 | 369 | case 0: // OUT |
| 370 | logerror("%s OUT %02x %02x\n", machine().describe_context(), cs, data); |
| 363 | 371 | break; |
| 364 | 372 | |
| 365 | 373 | case 2: // C1 |
| 374 | logerror("%s C1 %02x\n", machine().describe_context(), cs); |
| 366 | 375 | break; |
| 367 | 376 | |
| 368 | 377 | case 3: // C2 |
| 378 | logerror("%s C2 %02x\n", machine().describe_context(), cs); |
| 369 | 379 | break; |
| 370 | 380 | |
| 371 | 381 | case 4: // C3 |
| 382 | logerror("%s C3 %02x\n", machine().describe_context(), cs); |
| 372 | 383 | break; |
| 373 | 384 | |
| 374 | 385 | case 5: // C4 |
| 386 | logerror("%s C4 %02x\n", machine().describe_context(), cs); |
| 375 | 387 | break; |
| 388 | |
| 389 | default: |
| 390 | logerror("%s Unmapped write %02x to virtual I/O %06x\n", machine().describe_context(), data, offset); |
| 376 | 391 | } |
| 377 | | |
| 378 | | // BUS0I, BUS0X, BUS1, BUS2 |
| 379 | | logerror("Unmapped write %02x to virtual I/O %06x\n", data, offset); |
| 380 | 392 | } |
| 381 | 393 | } |
| 382 | 394 | |
| r13040 | r13041 | |
| 439 | 451 | if (PAGE_NONX) |
| 440 | 452 | { |
| 441 | 453 | logerror("Bus error %06x : %06x\n", offset, virtual_offset); |
| 442 | | m_maincpu->set_input_line(M68K_LINE_BUSERROR, ASSERT_LINE); |
| 443 | | m_maincpu->set_input_line(M68K_LINE_BUSERROR, CLEAR_LINE); |
| 454 | //m_maincpu->set_input_line(M68K_LINE_BUSERROR, ASSERT_LINE); |
| 455 | //m_maincpu->set_input_line(M68K_LINE_BUSERROR, CLEAR_LINE); |
| 444 | 456 | } |
| 445 | 457 | |
| 446 | 458 | *nonx = PAGE_NONX; |
| r13040 | r13041 | |
| 1470 | 1482 | }; |
| 1471 | 1483 | |
| 1472 | 1484 | |
| 1485 | //------------------------------------------------- |
| 1486 | // ABCBUS_INTERFACE( abcbus_intf ) |
| 1487 | //------------------------------------------------- |
| 1473 | 1488 | |
| 1489 | static SLOT_INTERFACE_START( abc1600_abcbus_cards ) |
| 1490 | // SLOT_INTERFACE("4105", LUXOR_4105) // SASI interface |
| 1491 | // SLOT_INTERFACE("4077", LUXOR_4077) // Winchester controller |
| 1492 | SLOT_INTERFACE_END |
| 1493 | |
| 1494 | |
| 1495 | static ABCBUS_INTERFACE( abcbus_intf ) |
| 1496 | { |
| 1497 | DEVCB_NULL, |
| 1498 | DEVCB_NULL, |
| 1499 | DEVCB_NULL, |
| 1500 | DEVCB_NULL |
| 1501 | }; |
| 1502 | |
| 1503 | |
| 1504 | |
| 1474 | 1505 | //************************************************************************** |
| 1475 | 1506 | // MACHINE INITIALIZATION |
| 1476 | 1507 | //************************************************************************** |
| r13040 | r13041 | |
| 1589 | 1620 | MCFG_ABC99_ADD(abc99_intf) |
| 1590 | 1621 | MCFG_S1410_ADD() |
| 1591 | 1622 | |
| 1623 | MCFG_ABCBUS_ADD(MC68008P8_TAG, abcbus_intf) |
| 1624 | MCFG_ABCBUS_SLOT_ADD( 1, "bus0i", abc1600_abcbus_cards, NULL, NULL) |
| 1625 | MCFG_ABCBUS_SLOT_ADD( 2, "bus0x", abc1600_abcbus_cards, NULL, NULL) |
| 1626 | MCFG_ABCBUS_SLOT_ADD( 3, "bus1", abc1600_abcbus_cards, NULL, NULL) |
| 1627 | MCFG_ABCBUS_SLOT_ADD( 4, "bus2", abc1600_abcbus_cards, NULL, NULL) |
| 1628 | |
| 1592 | 1629 | // internal ram |
| 1593 | 1630 | MCFG_RAM_ADD(RAM_TAG) |
| 1594 | 1631 | MCFG_RAM_DEFAULT_SIZE("1M") |