src/mess/video/abc80x.c
| r1983 | r1984 | |
| 11 | 11 | - add proper screen parameters to startup |
| 12 | 12 | - abc802 delay CUR and DEN by 3 CCLK's |
| 13 | 13 | - abc800m high resolution (HR) |
| 14 | - abc800c basic rom for color needs to be dumped! |
| 14 | 15 | - abc800c character generator needs to be dumped! |
| 15 | 16 | - abc800c row update |
| 16 | 17 | - abc800c palette |
| 18 | - abc800c high resolution (HR) |
| 17 | 19 | - abc806 video proms need to be dumped! |
| 18 | 20 | - abc806 row update |
| 19 | 21 | - abc806 palette |
| r1983 | r1984 | |
| 248 | 250 | #include "driver.h" |
| 249 | 251 | #include "includes/abc80x.h" |
| 250 | 252 | #include "video/mc6845.h" |
| 253 | #include "machine/z80dart.h" |
| 251 | 254 | |
| 252 | | #define ABC800_CCLK ABC800_X01/6 |
| 255 | #define ABC800_CHAR_WIDTH 6 |
| 256 | |
| 257 | #define ABC800_CCLK ABC800_X01/ABC800_CHAR_WIDTH |
| 253 | 258 | #define ABC802_FLSHCLK 2 |
| 254 | 259 | |
| 255 | | #define ABC800_CHAR_WIDTH 8 |
| 256 | | |
| 257 | 260 | #define ABC802_AT0 0x01 |
| 258 | 261 | #define ABC802_AT1 0x02 |
| 259 | 262 | #define ABC802_ATD 0x40 |
| r1983 | r1984 | |
| 300 | 303 | |
| 301 | 304 | /* External Interface */ |
| 302 | 305 | |
| 306 | WRITE8_HANDLER( abc800m_hrs_w ) |
| 307 | { |
| 308 | } |
| 309 | |
| 310 | WRITE8_HANDLER( abc800m_hrc_w ) |
| 311 | { |
| 312 | } |
| 313 | |
| 314 | WRITE8_HANDLER( abc800c_hrs_w ) |
| 315 | { |
| 316 | } |
| 317 | |
| 318 | WRITE8_HANDLER( abc800c_hrc_w ) |
| 319 | { |
| 320 | } |
| 321 | |
| 322 | WRITE8_HANDLER( abc806_hrs_w ) |
| 323 | { |
| 324 | } |
| 325 | |
| 326 | WRITE8_HANDLER( abc806_hrc_w ) |
| 327 | { |
| 328 | } |
| 329 | |
| 303 | 330 | void abc802_mux80_40_w(int level) |
| 304 | 331 | { |
| 305 | 332 | abc802_mux80_40 = level; |
| r1983 | r1984 | |
| 353 | 380 | return data; |
| 354 | 381 | } |
| 355 | 382 | |
| 383 | WRITE8_HANDLER( abc806_fgctlprom_w ) |
| 384 | { |
| 385 | } |
| 386 | |
| 356 | 387 | WRITE8_HANDLER( abc806_sync_w ) |
| 357 | 388 | { |
| 358 | 389 | /* |
| r1983 | r1984 | |
| 398 | 429 | |
| 399 | 430 | UINT8 *charrom = memory_region(REGION_GFX1); |
| 400 | 431 | UINT16 address = (videoram[(ma + column) & 0x7ff] << 4) | (ra & 0x0f); |
| 401 | | UINT8 data = charrom[address & 0x7ff] & 0x3f; |
| 432 | UINT8 data = (charrom[address & 0x7ff] & 0x3f); |
| 402 | 433 | |
| 403 | 434 | if (column == cursor_x) |
| 404 | 435 | { |
| 405 | 436 | data = 0x3f; |
| 406 | 437 | } |
| 407 | 438 | |
| 439 | data <<= 2; |
| 440 | |
| 408 | 441 | for (bit = 0; bit < ABC800_CHAR_WIDTH; bit++) |
| 409 | 442 | { |
| 410 | 443 | int x = (column * ABC800_CHAR_WIDTH) + bit; |
| r1983 | r1984 | |
| 417 | 450 | } |
| 418 | 451 | } |
| 419 | 452 | |
| 453 | static MC6845_ON_VSYNC_CHANGED(abc800_vsync_changed) |
| 454 | { |
| 455 | z80dart_set_ri(0, vsync); |
| 456 | } |
| 457 | |
| 458 | static MC6845_UPDATE_ROW( abc800c_update_row ) |
| 459 | { |
| 460 | } |
| 461 | |
| 420 | 462 | static MC6845_UPDATE_ROW( abc802_update_row ) |
| 421 | 463 | { |
| 422 | 464 | int column; |
| 423 | 465 | |
| 424 | | if (!abc802_mux80_40) |
| 425 | | { |
| 426 | | x_count >>= 1; |
| 427 | | cursor_x >>= 1; |
| 428 | | } |
| 429 | | |
| 430 | 466 | for (column = 0; column < x_count; column++) |
| 431 | 467 | { |
| 432 | 468 | int bit; |
| r1983 | r1984 | |
| 481 | 517 | // reload data and mask out two bottom bits |
| 482 | 518 | data = charrom[(address + ra_latch) & 0x1fff] & 0xfc; |
| 483 | 519 | } |
| 520 | |
| 521 | data <<= 2; |
| 484 | 522 | |
| 485 | 523 | if (abc802_mux80_40) |
| 486 | 524 | { |
| r1983 | r1984 | |
| 498 | 536 | { |
| 499 | 537 | for (bit = 0; bit < ABC800_CHAR_WIDTH; bit++) |
| 500 | 538 | { |
| 501 | | int x = (column * ABC800_CHAR_WIDTH * 2) + (bit * 2); |
| 539 | int x = (column * ABC800_CHAR_WIDTH) + (bit << 1); |
| 502 | 540 | int color = BIT(data, 7) ^ BIT(code, 7); |
| 503 | 541 | |
| 504 | 542 | *BITMAP_ADDR16(bitmap, y, x) = color; |
| r1983 | r1984 | |
| 506 | 544 | |
| 507 | 545 | data <<= 1; |
| 508 | 546 | } |
| 547 | |
| 548 | column++; |
| 509 | 549 | } |
| 510 | 550 | } |
| 511 | 551 | } |
| 512 | 552 | |
| 553 | static MC6845_ON_VSYNC_CHANGED(abc802_vsync_changed) |
| 554 | { |
| 555 | z80dart_set_ri(0, vsync); |
| 556 | } |
| 557 | |
| 513 | 558 | static MC6845_UPDATE_ROW( abc806_update_row ) |
| 514 | 559 | { |
| 515 | 560 | // DEN+3, CUR+4 |
| 516 | 561 | |
| 517 | | int col; |
| 562 | int column; |
| 518 | 563 | |
| 519 | | for (col = 0; col < x_count; col++) |
| 564 | for (column = 0; column < x_count; column++) |
| 520 | 565 | { |
| 521 | 566 | int bit; |
| 522 | 567 | |
| 523 | 568 | UINT8 *charrom = memory_region(REGION_GFX1); |
| 524 | | UINT8 code = videoram[(ma + col) & 0x7ff]; |
| 525 | | // UINT8 attr = abc806_colorram[(ma + col) & 0x7ff]; |
| 569 | UINT8 code = videoram[(ma + column) & 0x7ff]; |
| 570 | UINT8 attr = abc806_colorram[(ma + column) & 0x7ff]; |
| 526 | 571 | UINT16 address = ((code & 0x80) << 5) | ((code & 0x7f) << 4); |
| 527 | 572 | UINT8 ra_latch = ra; |
| 528 | 573 | UINT8 data; |
| 529 | 574 | |
| 530 | | if (col == cursor_x) |
| 575 | if (column == cursor_x) |
| 531 | 576 | { |
| 532 | 577 | ra_latch = 0x0f; |
| 533 | 578 | } |
| 534 | 579 | |
| 535 | 580 | data = charrom[(address + ra_latch) & 0xfff] << 2; |
| 536 | 581 | |
| 537 | | for (bit = 0; bit < ABC800_CHAR_WIDTH; bit++) |
| 582 | if (abc806_40) |
| 538 | 583 | { |
| 539 | | int x = (col * ABC800_CHAR_WIDTH) + bit; |
| 540 | | int color = BIT(data, 7) ? 1 : 0; |
| 584 | for (bit = 0; bit < ABC800_CHAR_WIDTH; bit++) |
| 585 | { |
| 586 | int x = (column * ABC800_CHAR_WIDTH) + bit; |
| 587 | int color = BIT(data, 7) ? (attr & 0x03) : 0; |
| 541 | 588 | |
| 542 | | if (abc806_txoff) |
| 589 | if (abc806_txoff) |
| 590 | { |
| 591 | color = 0; |
| 592 | } |
| 593 | |
| 594 | *BITMAP_ADDR16(bitmap, y, x) = color; |
| 595 | |
| 596 | data <<= 1; |
| 597 | } |
| 598 | } |
| 599 | else |
| 600 | { |
| 601 | for (bit = 0; bit < ABC800_CHAR_WIDTH; bit++) |
| 543 | 602 | { |
| 544 | | color = 0; |
| 603 | int x = (column * ABC800_CHAR_WIDTH) + (bit << 1); |
| 604 | int color = BIT(data, 7) ? 1 : 0; |
| 605 | |
| 606 | if (abc806_txoff) |
| 607 | { |
| 608 | color = 0; |
| 609 | } |
| 610 | |
| 611 | *BITMAP_ADDR16(bitmap, y, x) = color; |
| 612 | *BITMAP_ADDR16(bitmap, y, x + 1) = color; |
| 613 | |
| 614 | data <<= 1; |
| 545 | 615 | } |
| 546 | 616 | |
| 547 | | *BITMAP_ADDR16(bitmap, y, x) = color; |
| 548 | | |
| 549 | | data <<= 1; |
| 617 | column++; |
| 550 | 618 | } |
| 551 | 619 | } |
| 552 | 620 | } |
| r1983 | r1984 | |
| 565 | 633 | { |
| 566 | 634 | abc806_v50_addr = 0; |
| 567 | 635 | } |
| 636 | |
| 637 | z80dart_set_ri(0, vsync); |
| 568 | 638 | } |
| 569 | 639 | |
| 570 | 640 | /* MC6845 Interfaces */ |
| r1983 | r1984 | |
| 578 | 648 | NULL, |
| 579 | 649 | NULL, |
| 580 | 650 | NULL, |
| 581 | | NULL |
| 651 | abc800_vsync_changed |
| 582 | 652 | }; |
| 583 | 653 | |
| 654 | static const mc6845_interface abc800c_crtc6845_interface = { |
| 655 | 0, |
| 656 | ABC800_CCLK, |
| 657 | ABC800_CHAR_WIDTH, |
| 658 | NULL, |
| 659 | abc800c_update_row, |
| 660 | NULL, |
| 661 | NULL, |
| 662 | NULL, |
| 663 | abc800_vsync_changed |
| 664 | }; |
| 665 | |
| 584 | 666 | static const mc6845_interface abc802_crtc6845_interface = { |
| 585 | 667 | 0, |
| 586 | 668 | ABC800_CCLK, |
| r1983 | r1984 | |
| 590 | 672 | NULL, |
| 591 | 673 | NULL, |
| 592 | 674 | NULL, |
| 593 | | NULL |
| 675 | abc802_vsync_changed |
| 594 | 676 | }; |
| 595 | 677 | |
| 596 | 678 | static const mc6845_interface abc806_crtc6845_interface = { |
| r1983 | r1984 | |
| 635 | 717 | |
| 636 | 718 | /* Video Update */ |
| 637 | 719 | |
| 638 | | static VIDEO_UPDATE( abc800 ) |
| 720 | static VIDEO_UPDATE( abc800m ) |
| 639 | 721 | { |
| 640 | 722 | mc6845_update(abc800_mc6845, bitmap, cliprect); |
| 641 | 723 | |
| 642 | 724 | return 0; |
| 643 | 725 | } |
| 644 | 726 | |
| 727 | static VIDEO_UPDATE( abc800c ) |
| 728 | { |
| 729 | mc6845_update(abc800_mc6845, bitmap, cliprect); |
| 730 | |
| 731 | return 0; |
| 732 | } |
| 733 | |
| 734 | static VIDEO_UPDATE( abc802 ) |
| 735 | { |
| 736 | mc6845_update(abc800_mc6845, bitmap, cliprect); |
| 737 | |
| 738 | return 0; |
| 739 | } |
| 740 | |
| 741 | static VIDEO_UPDATE( abc806 ) |
| 742 | { |
| 743 | mc6845_update(abc800_mc6845, bitmap, cliprect); |
| 744 | |
| 745 | return 0; |
| 746 | } |
| 747 | |
| 645 | 748 | /* Machine Drivers */ |
| 646 | 749 | |
| 647 | 750 | MACHINE_DRIVER_START( abc800m_video ) |
| r1983 | r1984 | |
| 662 | 765 | |
| 663 | 766 | MDRV_PALETTE_INIT(abc800m) |
| 664 | 767 | MDRV_VIDEO_START(abc800) |
| 665 | | MDRV_VIDEO_UPDATE(abc800) |
| 768 | MDRV_VIDEO_UPDATE(abc800m) |
| 666 | 769 | MACHINE_DRIVER_END |
| 667 | 770 | |
| 668 | 771 | MACHINE_DRIVER_START( abc800c_video ) |
| 669 | | MDRV_IMPORT_FROM(abc800m_video) |
| 772 | // device interface |
| 773 | MDRV_DEVICE_ADD("crtc", MC6845) |
| 774 | MDRV_DEVICE_CONFIG(abc800c_crtc6845_interface) |
| 775 | |
| 776 | // video hardware |
| 777 | MDRV_SCREEN_ADD("main", RASTER) |
| 778 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 779 | |
| 780 | MDRV_SCREEN_REFRESH_RATE(60) |
| 781 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) |
| 782 | MDRV_SCREEN_SIZE(640, 400) |
| 783 | MDRV_SCREEN_VISIBLE_AREA(0,640-1, 0, 400-1) |
| 784 | |
| 785 | MDRV_PALETTE_LENGTH(2) |
| 786 | |
| 670 | 787 | MDRV_PALETTE_INIT(abc800c) |
| 788 | MDRV_VIDEO_START(abc800) |
| 789 | MDRV_VIDEO_UPDATE(abc800c) |
| 671 | 790 | MACHINE_DRIVER_END |
| 672 | 791 | |
| 673 | 792 | MACHINE_DRIVER_START( abc802_video ) |
| r1983 | r1984 | |
| 688 | 807 | |
| 689 | 808 | MDRV_PALETTE_INIT(abc800m) |
| 690 | 809 | MDRV_VIDEO_START(abc802) |
| 691 | | MDRV_VIDEO_UPDATE(abc800) |
| 810 | MDRV_VIDEO_UPDATE(abc802) |
| 692 | 811 | MACHINE_DRIVER_END |
| 693 | 812 | |
| 694 | 813 | MACHINE_DRIVER_START( abc806_video ) |
| r1983 | r1984 | |
| 709 | 828 | |
| 710 | 829 | MDRV_PALETTE_INIT(abc800c) |
| 711 | 830 | MDRV_VIDEO_START(abc806) |
| 712 | | MDRV_VIDEO_UPDATE(abc800) |
| 831 | MDRV_VIDEO_UPDATE(abc806) |
| 713 | 832 | MACHINE_DRIVER_END |
src/mess/drivers/abc80x.c
| r1983 | r1984 | |
| 55 | 55 | |
| 56 | 56 | TODO: |
| 57 | 57 | |
| 58 | | - change to use devread/write in 0.123u5 |
| 59 | 58 | - pass mc6854 around in machine->driver_data |
| 60 | 59 | - keyboard ROM dump is needed! |
| 60 | - rewrite Z80DART for bit level serial I/O |
| 61 | - ABC806 memory banking for 0x7000-0x7fff |
| 61 | 62 | - keyboard NE556 discrete beeper |
| 62 | | - ABC806 memory banking |
| 63 | | - proper port mirroring |
| 64 | 63 | - COM port DIP switch |
| 65 | 64 | - floppy controller board |
| 65 | - TeleDisk (td0) image support |
| 66 | 66 | - Facit DTC (recased ABC-800?) |
| 67 | 67 | - hard disks (ABC-850 10MB, ABC-852 20MB, ABC-856 60MB) |
| 68 | 68 | |
| r1983 | r1984 | |
| 70 | 70 | |
| 71 | 71 | /* Core includes */ |
| 72 | 72 | #include "driver.h" |
| 73 | #include "mslegacy.h" |
| 73 | 74 | #include "includes/abc80x.h" |
| 74 | 75 | |
| 75 | 76 | /* Components */ |
| 77 | #include "cpu/z80/z80.h" |
| 76 | 78 | #include "cpu/z80/z80daisy.h" |
| 77 | 79 | #include "cpu/i8039/i8039.h" |
| 78 | 80 | #include "machine/centroni.h" |
| r1983 | r1984 | |
| 94 | 96 | |
| 95 | 97 | /* Read/Write Handlers */ |
| 96 | 98 | |
| 97 | | // HR |
| 99 | // ABC 800 |
| 98 | 100 | |
| 99 | | static WRITE8_HANDLER( hrs_w ) |
| 101 | static WRITE8_HANDLER( abc800_ram_ctrl_w ) |
| 100 | 102 | { |
| 101 | 103 | } |
| 102 | 104 | |
| 103 | | static WRITE8_HANDLER( hrc_w ) |
| 104 | | { |
| 105 | | } |
| 106 | | |
| 107 | 105 | // ABC 806 |
| 108 | 106 | |
| 109 | | static READ8_HANDLER( bankswitch_r ) |
| 107 | static UINT8 abc806_bank[0xf] = { 0 }; |
| 108 | |
| 109 | static READ8_HANDLER( abc806_bankswitch_r ) |
| 110 | 110 | { |
| 111 | | return 0; |
| 111 | int bank = offset >> 12; |
| 112 | |
| 113 | return abc806_bank[bank]; |
| 112 | 114 | } |
| 113 | 115 | |
| 114 | | static WRITE8_HANDLER( bankswitch_w ) |
| 116 | static WRITE8_HANDLER( abc806_bankswitch_w ) |
| 115 | 117 | { |
| 116 | | } |
| 118 | /* |
| 117 | 119 | |
| 118 | | static WRITE8_HANDLER( ram_ctrl_w ) |
| 119 | | { |
| 120 | bit description |
| 121 | 0 physical block address bit 0 |
| 122 | 1 physical block address bit 1 |
| 123 | 2 physical block address bit 2 |
| 124 | 3 physical block address bit 3 |
| 125 | 4 physical block address bit 4 |
| 126 | 5 |
| 127 | 6 |
| 128 | 7 allocate block |
| 129 | |
| 130 | - extended 128KB memory is divided into 32 physical blocks of 4KB each |
| 131 | - logical CPU address space is divided into 16 logical blocks of 4KB each |
| 132 | - extended blocks can be allocated to the logical blocks |
| 133 | - logical address is provided by the offset (e.g write to port 0xc034 -> address 0xc000) |
| 134 | |
| 135 | */ |
| 136 | |
| 137 | int bank = offset >> 12; |
| 138 | int block = data & 0x3f; |
| 139 | |
| 140 | abc806_bank[bank] = data; |
| 141 | |
| 142 | if (bank != 7) |
| 143 | { |
| 144 | UINT16 bank_start = offset & 0xf000; |
| 145 | UINT16 bank_end = bank_start + 0xfff; |
| 146 | |
| 147 | if (BIT(data, 7)) |
| 148 | { |
| 149 | UINT16 block_start = block * 0x1000; |
| 150 | UINT16 block_end = block_start + 0xfff; |
| 151 | |
| 152 | logerror("ABC806 allocating extended block %u (%04x-%04x) to %04x-%04x\n", block, block_start, block_end, bank_start, bank_end); |
| 153 | |
| 154 | // allocate to extended memory block |
| 155 | memory_set_bank(bank + 1, block + 1); |
| 156 | } |
| 157 | else |
| 158 | { |
| 159 | // deallocate back to REGION_CPU1 |
| 160 | memory_set_bank(bank + 1, 0); |
| 161 | |
| 162 | if (bank < 7) |
| 163 | { |
| 164 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, bank_start, bank_end, 0, 0, MWA8_UNMAP); |
| 165 | logerror("ABC806 deallocating %04x-%04x back to ROM\n", bank_start, bank_end); |
| 166 | } |
| 167 | else |
| 168 | { |
| 169 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, bank_start, bank_end, 0, 0, (write8_machine_func)(STATIC_BANK1 + bank)); |
| 170 | logerror("ABC806 deallocating %04x-%04x back to RAM\n", bank_start, bank_end); |
| 171 | } |
| 172 | } |
| 173 | } |
| 120 | 174 | } |
| 121 | 175 | |
| 122 | | // SIO/2 |
| 176 | // Z80 SIO/2 |
| 123 | 177 | |
| 124 | 178 | static READ8_HANDLER( sio2_r ) |
| 125 | 179 | { |
| r1983 | r1984 | |
| 157 | 211 | } |
| 158 | 212 | } |
| 159 | 213 | |
| 160 | | // DART |
| 214 | // Z80 DART |
| 161 | 215 | |
| 162 | 216 | static READ8_HANDLER( dart_r ) |
| 163 | 217 | { |
| r1983 | r1984 | |
| 170 | 224 | case 2: |
| 171 | 225 | return z80dart_d_r(0, 1); |
| 172 | 226 | case 3: |
| 173 | | return z80dart_c_r(0, 1); |
| 227 | return z80dart_c_r(0, 0); // this gets ABC806 booting, should be z80dart_c_r(0, 1) |
| 174 | 228 | } |
| 175 | 229 | |
| 176 | 230 | return 0xff; |
| r1983 | r1984 | |
| 213 | 267 | |
| 214 | 268 | */ |
| 215 | 269 | |
| 216 | | static int abc77_keylatch, abc77_clock; |
| 270 | static int abc77_keylatch, abc77_keydown, abc77_clock, abc77_beep, abc77_hys, abc77_txd; |
| 217 | 271 | |
| 218 | 272 | static READ8_HANDLER( abc77_clock_r ) |
| 219 | 273 | { |
| r1983 | r1984 | |
| 234 | 288 | watchdog_reset(machine); |
| 235 | 289 | } |
| 236 | 290 | |
| 237 | | // abc77_beep = data & 0x10; |
| 238 | | z80dart_set_dcd(0, 0, !BIT(data, 6)); |
| 239 | | z80dart_set_dcd(0, 0, BIT(data, 6)); |
| 240 | | // abc77_hys = data & 0x80; |
| 291 | abc77_beep = BIT(data, 4); |
| 292 | abc77_txd = BIT(data, 5); |
| 293 | abc77_keydown = BIT(data, 6); |
| 294 | abc77_hys = BIT(data, 7); |
| 295 | |
| 296 | z80dart_set_dcd(0, 0, abc77_keydown); |
| 297 | //z80dart_set_cts(0, 0, abc77_keydown); on ABC802 only |
| 298 | |
| 299 | // write abc77_txd to Z80DART TxD |
| 241 | 300 | } |
| 242 | 301 | |
| 243 | 302 | static READ8_HANDLER( abc77_ea_r ) |
| r1983 | r1984 | |
| 247 | 306 | |
| 248 | 307 | /* Memory Maps */ |
| 249 | 308 | |
| 250 | | // ABC 800 |
| 309 | // ABC 77 keyboard |
| 251 | 310 | |
| 252 | | static ADDRESS_MAP_START( abc800_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 311 | static ADDRESS_MAP_START( abc77_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 312 | AM_RANGE(0x000, 0xfff) AM_ROM |
| 313 | ADDRESS_MAP_END |
| 314 | |
| 315 | static ADDRESS_MAP_START( abc77_io_map, ADDRESS_SPACE_IO, 8 ) |
| 316 | AM_RANGE(0x00, 0x3f) AM_RAM |
| 317 | AM_RANGE(I8039_p1, I8039_p1) AM_READ(abc77_data_r) |
| 318 | AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(abc77_data_w) |
| 319 | AM_RANGE(I8039_t1, I8039_t1) AM_READ(abc77_clock_r) |
| 320 | AM_RANGE(I8039_bus, I8039_bus) AM_READ_PORT("DSW") |
| 321 | AM_RANGE(I8039_ea, I8039_ea) AM_READ(abc77_ea_r) |
| 322 | ADDRESS_MAP_END |
| 323 | |
| 324 | // ABC 800M |
| 325 | |
| 326 | static ADDRESS_MAP_START( abc800m_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 253 | 327 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) |
| 254 | 328 | AM_RANGE(0x0000, 0x77ff) AM_ROM |
| 255 | 329 | AM_RANGE(0x7800, 0x7fff) AM_RAM AM_BASE(&videoram) |
| 256 | 330 | AM_RANGE(0x8000, 0xffff) AM_RAM |
| 257 | 331 | ADDRESS_MAP_END |
| 258 | 332 | |
| 259 | | static ADDRESS_MAP_START( abc800_io_map, ADDRESS_SPACE_IO, 8 ) |
| 333 | static ADDRESS_MAP_START( abc800m_io_map, ADDRESS_SPACE_IO, 8 ) |
| 260 | 334 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | AMEF_UNMAP(1) ) |
| 261 | 335 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 262 | 336 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 263 | 337 | AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w) |
| 264 | | AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(hrs_w) |
| 265 | | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, hrc_w) |
| 338 | AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(abc800m_hrs_w) |
| 339 | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800m_hrc_w) |
| 266 | 340 | AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_READWRITE(dart_r, dart_w) |
| 267 | | AM_RANGE(0x30, 0x32) AM_WRITE(ram_ctrl_w) |
| 341 | AM_RANGE(0x30, 0x32) AM_WRITE(abc800_ram_ctrl_w) |
| 268 | 342 | AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r) |
| 269 | 343 | AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 270 | 344 | AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| r1983 | r1984 | |
| 273 | 347 | AM_RANGE(0x80, 0x80) AM_MIRROR(0x7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w) |
| 274 | 348 | ADDRESS_MAP_END |
| 275 | 349 | |
| 276 | | // ABC 77 keyboard |
| 350 | // ABC 800C |
| 277 | 351 | |
| 278 | | static ADDRESS_MAP_START( abc77_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 279 | | AM_RANGE(0x000, 0xfff) AM_ROM |
| 352 | static ADDRESS_MAP_START( abc800c_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 353 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) |
| 354 | AM_RANGE(0x0000, 0x77ff) AM_ROM |
| 355 | AM_RANGE(0x7800, 0x7bff) AM_RAM AM_BASE(&videoram) |
| 356 | AM_RANGE(0x7800, 0xffff) AM_RAM |
| 280 | 357 | ADDRESS_MAP_END |
| 281 | 358 | |
| 282 | | static ADDRESS_MAP_START( abc77_io_map, ADDRESS_SPACE_IO, 8 ) |
| 283 | | AM_RANGE(0x00, 0x3f) AM_RAM |
| 284 | | AM_RANGE(I8039_p1, I8039_p1) AM_WRITE(abc77_data_w) |
| 285 | | AM_RANGE(I8039_p2, I8039_p2) AM_READ(abc77_data_r) |
| 286 | | AM_RANGE(I8039_t1, I8039_t1) AM_READ(abc77_clock_r) |
| 287 | | AM_RANGE(I8039_bus, I8039_bus) AM_READ_PORT("DSW") |
| 288 | | AM_RANGE(I8039_ea, I8039_ea) AM_READ(abc77_ea_r) |
| 359 | static ADDRESS_MAP_START( abc800c_io_map, ADDRESS_SPACE_IO, 8 ) |
| 360 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | AMEF_UNMAP(1) ) |
| 361 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 362 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 363 | AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w) |
| 364 | AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(abc800c_hrs_w) |
| 365 | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, abc800c_hrc_w) |
| 366 | AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_READWRITE(dart_r, dart_w) |
| 367 | AM_RANGE(0x30, 0x32) AM_WRITE(abc800_ram_ctrl_w) |
| 368 | AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r) |
| 369 | AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 370 | AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 371 | AM_RANGE(0x40, 0x43) AM_MIRROR(0x1c) AM_READWRITE(sio2_r, sio2_w) |
| 372 | AM_RANGE(0x50, 0x53) AM_MIRROR(0x1c) AM_READWRITE(z80ctc_0_r, z80ctc_0_w) |
| 373 | AM_RANGE(0x80, 0x80) AM_MIRROR(0x7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w) |
| 289 | 374 | ADDRESS_MAP_END |
| 290 | 375 | |
| 291 | 376 | // ABC 802 |
| r1983 | r1984 | |
| 302 | 387 | AM_RANGE(0x00, 0x00) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 303 | 388 | AM_RANGE(0x01, 0x01) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 304 | 389 | AM_RANGE(0x02, 0x05) AM_WRITE(abcbus_command_w) |
| 305 | | AM_RANGE(0x06, 0x06) AM_WRITE(hrs_w) |
| 306 | | AM_RANGE(0x07, 0x07) AM_READWRITE(abcbus_reset_r, hrc_w) |
| 390 | AM_RANGE(0x07, 0x07) AM_READ(abcbus_reset_r) |
| 307 | 391 | AM_RANGE(0x20, 0x23) AM_READWRITE(dart_r, dart_w) |
| 308 | 392 | AM_RANGE(0x31, 0x31) AM_DEVREAD(MC6845, "crtc", mc6845_register_r) |
| 309 | 393 | AM_RANGE(0x32, 0x35) AM_READWRITE(sio2_r, sio2_w) |
| r1983 | r1984 | |
| 317 | 401 | |
| 318 | 402 | static ADDRESS_MAP_START( abc806_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 319 | 403 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) |
| 320 | | AM_RANGE(0x0000, 0x77ff) AM_RAMBANK(1) |
| 404 | AM_RANGE(0x0000, 0x0fff) AM_RAMBANK(1) |
| 405 | AM_RANGE(0x1000, 0x1fff) AM_RAMBANK(2) |
| 406 | AM_RANGE(0x2000, 0x2fff) AM_RAMBANK(3) |
| 407 | AM_RANGE(0x3000, 0x3fff) AM_RAMBANK(4) |
| 408 | AM_RANGE(0x4000, 0x4fff) AM_RAMBANK(5) |
| 409 | AM_RANGE(0x5000, 0x5fff) AM_RAMBANK(6) |
| 410 | AM_RANGE(0x6000, 0x6fff) AM_RAMBANK(7) |
| 411 | // |
| 412 | AM_RANGE(0x7000, 0x77ff) AM_ROM |
| 321 | 413 | AM_RANGE(0x7800, 0x7fff) AM_READWRITE(abc806_videoram_r, abc806_videoram_w) AM_BASE(&videoram) |
| 322 | | AM_RANGE(0x8000, 0xffff) AM_RAM |
| 414 | // |
| 415 | AM_RANGE(0x8000, 0x8fff) AM_RAMBANK(9) |
| 416 | AM_RANGE(0x9000, 0x9fff) AM_RAMBANK(10) |
| 417 | AM_RANGE(0xa000, 0xafff) AM_RAMBANK(11) |
| 418 | AM_RANGE(0xb000, 0xbfff) AM_RAMBANK(12) |
| 419 | AM_RANGE(0xc000, 0xcfff) AM_RAMBANK(13) |
| 420 | AM_RANGE(0xd000, 0xdfff) AM_RAMBANK(14) |
| 421 | AM_RANGE(0xe000, 0xefff) AM_RAMBANK(15) |
| 422 | AM_RANGE(0xf000, 0xffff) AM_RAMBANK(16) |
| 323 | 423 | ADDRESS_MAP_END |
| 324 | 424 | |
| 325 | 425 | static ADDRESS_MAP_START( abc806_io_map, ADDRESS_SPACE_IO, 8 ) |
| 326 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) | AMEF_UNMAP(1) ) |
| 327 | | // AM_RANGE(0x00, 0x00) AM_MIRROR(0x1f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w) |
| 328 | | AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 329 | | AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 330 | | AM_RANGE(0x02, 0x05) AM_MIRROR(0x18) AM_WRITE(abcbus_command_w) |
| 331 | | AM_RANGE(0x06, 0x06) AM_MIRROR(0x18) AM_WRITE(hrs_w) |
| 332 | | AM_RANGE(0x07, 0x07) AM_MIRROR(0x18) AM_READWRITE(abcbus_reset_r, hrc_w) |
| 333 | | AM_RANGE(0x20, 0x23) AM_MIRROR(0x0c) AM_READWRITE(dart_r, dart_w) |
| 334 | | AM_RANGE(0x31, 0x31) AM_MIRROR(0x06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r) |
| 335 | | AM_RANGE(0x34, 0x34) AM_READWRITE(bankswitch_r, bankswitch_w) |
| 336 | | AM_RANGE(0x35, 0x35) AM_READWRITE(abc806_colorram_r, abc806_colorram_w) |
| 337 | | AM_RANGE(0x37, 0x37) AM_READWRITE(abc806_fgctlprom_r, abc806_sync_w) |
| 338 | | AM_RANGE(0x38, 0x38) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 339 | | AM_RANGE(0x39, 0x39) AM_MIRROR(0x06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 340 | | AM_RANGE(0x40, 0x41) AM_MIRROR(0x1c) AM_READWRITE(sio2_r, sio2_w) |
| 341 | | AM_RANGE(0x60, 0x63) AM_MIRROR(0x1c) AM_READWRITE(z80ctc_0_r, z80ctc_0_w) |
| 342 | | AM_RANGE(0x80, 0x80) AM_MIRROR(0x7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w) |
| 426 | ADDRESS_MAP_FLAGS( AMEF_UNMAP(1) ) |
| 427 | // AM_RANGE(0x00, 0x00) AM_MIRROR(0xff1f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w) |
| 428 | AM_RANGE(0x00, 0x00) AM_MIRROR(0xff18) AM_READWRITE(abcbus_data_r, abcbus_data_w) |
| 429 | AM_RANGE(0x01, 0x01) AM_MIRROR(0xff18) AM_READWRITE(abcbus_status_r, abcbus_channel_w) |
| 430 | AM_RANGE(0x02, 0x05) AM_MIRROR(0xff18) AM_WRITE(abcbus_command_w) |
| 431 | AM_RANGE(0x06, 0x06) AM_MIRROR(0xff18) AM_WRITE(abc806_hrs_w) |
| 432 | AM_RANGE(0x07, 0x07) AM_MIRROR(0xff18) AM_READWRITE(abcbus_reset_r, abc806_hrc_w) |
| 433 | AM_RANGE(0x20, 0x23) AM_MIRROR(0xff0c) AM_READWRITE(dart_r, dart_w) |
| 434 | AM_RANGE(0x31, 0x31) AM_MIRROR(0xff06) AM_DEVREAD(MC6845, "crtc", mc6845_register_r) |
| 435 | AM_RANGE(0x34, 0x34) AM_MIRROR(0xff00) AM_MASK(0xff00) AM_READWRITE(abc806_bankswitch_r, abc806_bankswitch_w) |
| 436 | AM_RANGE(0x35, 0x35) AM_MIRROR(0xff00) AM_READWRITE(abc806_colorram_r, abc806_colorram_w) |
| 437 | AM_RANGE(0x36, 0x36) AM_MIRROR(0xff00) AM_WRITE(abc806_fgctlprom_w) |
| 438 | AM_RANGE(0x37, 0x37) AM_MIRROR(0xff00) AM_READWRITE(abc806_fgctlprom_r, abc806_sync_w) |
| 439 | AM_RANGE(0x38, 0x38) AM_MIRROR(0xff06) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 440 | AM_RANGE(0x39, 0x39) AM_MIRROR(0xff06) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 441 | AM_RANGE(0x40, 0x41) AM_MIRROR(0xff1c) AM_READWRITE(sio2_r, sio2_w) |
| 442 | AM_RANGE(0x60, 0x63) AM_MIRROR(0xff1c) AM_READWRITE(z80ctc_0_r, z80ctc_0_w) |
| 443 | AM_RANGE(0x80, 0x80) AM_MIRROR(0xff7f) AM_READWRITE(abcbus_strobe_r, abcbus_strobe_w) |
| 343 | 444 | ADDRESS_MAP_END |
| 344 | 445 | |
| 345 | 446 | /* Input Ports */ |
| r1983 | r1984 | |
| 499 | 600 | |
| 500 | 601 | static WRITE8_HANDLER( abc800_ctc_z2_w ) |
| 501 | 602 | { |
| 502 | | abc77_clock = data; |
| 603 | // write to DART channel A RxC/TxC |
| 503 | 604 | } |
| 504 | 605 | |
| 505 | 606 | static z80ctc_interface abc800_ctc_intf = |
| r1983 | r1984 | |
| 564 | 665 | { |
| 565 | 666 | if (offset == 1) |
| 566 | 667 | { |
| 567 | | abc802_mux80_40_w(BIT(data, 0)); |
| 668 | abc802_mux80_40_w(!BIT(data, 0)); |
| 568 | 669 | } |
| 569 | 670 | } |
| 570 | 671 | |
| r1983 | r1984 | |
| 612 | 713 | abc800_mc6845 = devtag_get_token(machine, MC6845, "crtc"); |
| 613 | 714 | } |
| 614 | 715 | |
| 615 | | static INTERRUPT_GEN( abc802_vblank_interrupt ) |
| 616 | | { |
| 617 | | z80dart_set_ri(0, 0); |
| 618 | | z80dart_set_ri(0, 1); |
| 619 | | } |
| 620 | | |
| 621 | 716 | static MACHINE_START( abc802 ) |
| 622 | 717 | { |
| 623 | 718 | MACHINE_START_CALL(abc800); |
| r1983 | r1984 | |
| 635 | 730 | |
| 636 | 731 | static MACHINE_START( abc806 ) |
| 637 | 732 | { |
| 733 | int bank; |
| 734 | |
| 638 | 735 | MACHINE_START_CALL(abc800); |
| 639 | 736 | |
| 640 | | memory_configure_bank(1, 0, 1, memory_region(REGION_CPU1), 0); |
| 641 | | memory_configure_bank(1, 1, 1, mess_ram, 0); |
| 737 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x0fff, 0, 0, MRA8_BANK1, MWA8_UNMAP); |
| 738 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x1000, 0x1fff, 0, 0, MRA8_BANK2, MWA8_UNMAP); |
| 739 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x2000, 0x2fff, 0, 0, MRA8_BANK3, MWA8_UNMAP); |
| 740 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x3fff, 0, 0, MRA8_BANK4, MWA8_UNMAP); |
| 741 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x4000, 0x4fff, 0, 0, MRA8_BANK5, MWA8_UNMAP); |
| 742 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x5000, 0x5fff, 0, 0, MRA8_BANK6, MWA8_UNMAP); |
| 743 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x6fff, 0, 0, MRA8_BANK7, MWA8_UNMAP); |
| 744 | |
| 745 | // memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7000, 0x7fff, 0, 0, MRA8_BANK8, MWA8_BANK8); |
| 746 | |
| 747 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x8fff, 0, 0, MRA8_BANK9, MWA8_BANK9); |
| 748 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x9000, 0x9fff, 0, 0, MRA8_BANK10, MWA8_BANK10); |
| 749 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa000, 0xafff, 0, 0, MRA8_BANK11, MWA8_BANK11); |
| 750 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xbfff, 0, 0, MRA8_BANK12, MWA8_BANK12); |
| 751 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xcfff, 0, 0, MRA8_BANK13, MWA8_BANK13); |
| 752 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xd000, 0xdfff, 0, 0, MRA8_BANK14, MWA8_BANK14); |
| 753 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xe000, 0xefff, 0, 0, MRA8_BANK15, MWA8_BANK15); |
| 754 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, MRA8_BANK16, MWA8_BANK16); |
| 755 | |
| 756 | for (bank = 1; bank < 17; bank++) |
| 757 | { |
| 758 | if (bank != 8) |
| 759 | { |
| 760 | memory_configure_bank(bank, 0, 1, memory_region(REGION_CPU1) + ((bank - 1) * 0x1000), 0); |
| 761 | memory_configure_bank(bank, 1, 32, mess_ram, 0x1000); |
| 762 | |
| 763 | memory_set_bank(bank, 0); |
| 764 | } |
| 765 | } |
| 642 | 766 | } |
| 643 | 767 | |
| 644 | 768 | static MACHINE_RESET( abc806 ) |
| 645 | 769 | { |
| 646 | | memory_set_bank(1, 0); |
| 770 | int bank; |
| 771 | |
| 772 | for (bank = 1; bank < 17; bank++) |
| 773 | { |
| 774 | if (bank != 8) |
| 775 | { |
| 776 | memory_set_bank(bank, 0); |
| 777 | } |
| 778 | } |
| 647 | 779 | } |
| 648 | 780 | |
| 649 | 781 | /* Machine Drivers */ |
| r1983 | r1984 | |
| 652 | 784 | // basic machine hardware |
| 653 | 785 | MDRV_CPU_ADD(Z80, ABC800_X01/2/2) // 3 MHz |
| 654 | 786 | MDRV_CPU_CONFIG(abc800_daisy_chain) |
| 655 | | MDRV_CPU_PROGRAM_MAP(abc800_map, 0) |
| 656 | | MDRV_CPU_IO_MAP(abc800_io_map, 0) |
| 787 | MDRV_CPU_PROGRAM_MAP(abc800m_map, 0) |
| 788 | MDRV_CPU_IO_MAP(abc800m_io_map, 0) |
| 657 | 789 | |
| 658 | | MDRV_CPU_ADD(I8035, 4608000) // 4.608 MHz, keyboard cpu |
| 790 | // ABC77 keyboard |
| 791 | MDRV_CPU_ADD(I8035, 4608000) |
| 659 | 792 | MDRV_CPU_PROGRAM_MAP(abc77_map, 0) |
| 660 | 793 | MDRV_CPU_IO_MAP(abc77_io_map, 0) |
| 661 | 794 | |
| r1983 | r1984 | |
| 668 | 801 | // basic machine hardware |
| 669 | 802 | MDRV_CPU_ADD(Z80, ABC800_X01/2/2) // 3 MHz |
| 670 | 803 | MDRV_CPU_CONFIG(abc800_daisy_chain) |
| 671 | | MDRV_CPU_PROGRAM_MAP(abc800_map, 0) |
| 672 | | MDRV_CPU_IO_MAP(abc800_io_map, 0) |
| 804 | MDRV_CPU_PROGRAM_MAP(abc800c_map, 0) |
| 805 | MDRV_CPU_IO_MAP(abc800c_io_map, 0) |
| 673 | 806 | |
| 674 | | MDRV_CPU_ADD(I8035, 4608000) // 4.608 MHz, keyboard cpu |
| 807 | // ABC77 keyboard |
| 808 | MDRV_CPU_ADD(I8035, 4608000) |
| 675 | 809 | MDRV_CPU_PROGRAM_MAP(abc77_map, 0) |
| 676 | 810 | MDRV_CPU_IO_MAP(abc77_io_map, 0) |
| 677 | 811 | |
| r1983 | r1984 | |
| 686 | 820 | MDRV_CPU_CONFIG(abc800_daisy_chain) |
| 687 | 821 | MDRV_CPU_PROGRAM_MAP(abc802_map, 0) |
| 688 | 822 | MDRV_CPU_IO_MAP(abc802_io_map, 0) |
| 689 | | MDRV_CPU_VBLANK_INT("main", abc802_vblank_interrupt) |
| 690 | 823 | |
| 691 | | MDRV_CPU_ADD(I8035, 4608000) // 4.608 MHz, keyboard cpu |
| 824 | // ABC77 keyboard |
| 825 | MDRV_CPU_ADD(I8035, 4608000) |
| 692 | 826 | MDRV_CPU_PROGRAM_MAP(abc77_map, 0) |
| 693 | 827 | MDRV_CPU_IO_MAP(abc77_io_map, 0) |
| 694 | 828 | |
| r1983 | r1984 | |
| 705 | 839 | MDRV_CPU_PROGRAM_MAP(abc806_map, 0) |
| 706 | 840 | MDRV_CPU_IO_MAP(abc806_io_map, 0) |
| 707 | 841 | |
| 708 | | MDRV_CPU_ADD(I8035, 4608000) // 4.608 MHz, keyboard cpu |
| 842 | // ABC77 keyboard |
| 843 | MDRV_CPU_ADD(I8035, 4608000) |
| 709 | 844 | MDRV_CPU_PROGRAM_MAP(abc77_map, 0) |
| 710 | 845 | MDRV_CPU_IO_MAP(abc77_io_map, 0) |
| 711 | 846 | |
| r1983 | r1984 | |
| 736 | 871 | ROM_LOAD( "65-02486.z10", 0x0000, 0x0800, NO_DUMP ) /* 2716 ABC55/77 keyboard controller Swedish EPROM */ \ |
| 737 | 872 | ROM_LOAD( "keyboard.z14", 0x0800, 0x0800, NO_DUMP ) /* 2716 ABC55/77 keyboard controller non-Swedish EPROM */ |
| 738 | 873 | |
| 874 | #define ROM_ABC99 \ |
| 875 | ROM_REGION( 0x1000, REGION_CPU2, 0 ) \ |
| 876 | ROM_LOAD( "abc99.bin", 0x0000, 0x0800, CRC(d48310fc) SHA1(17A2FFC0EC00D395C2B9CAF3D57FED575BA2B137) ) |
| 877 | |
| 878 | #define ROM_KEYBOARD ROM_ABC77 |
| 879 | |
| 739 | 880 | ROM_START( abc800c ) |
| 740 | 881 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 741 | 882 | ROM_LOAD( "abcc.1m", 0x0000, 0x1000, NO_DUMP ) |
| r1983 | r1984 | |
| 747 | 888 | ROM_LOAD( "abc6-13.2k", 0x6000, 0x1000, CRC(6fa71fb6) SHA1(b037dfb3de7b65d244c6357cd146376d4237dab6) ) |
| 748 | 889 | ROM_LOAD( "abc7-21.2j", 0x7000, 0x1000, CRC(fd137866) SHA1(3ac914d90db1503f61397c0ea26914eb38725044) ) |
| 749 | 890 | |
| 750 | | ROM_ABC77 |
| 891 | ROM_KEYBOARD |
| 751 | 892 | |
| 752 | 893 | ROM_REGION( 0x1000, REGION_GFX1, 0 ) |
| 753 | 894 | ROM_LOAD( "vuc-se.7c", 0x0000, 0x1000, NO_DUMP ) |
| r1983 | r1984 | |
| 793 | 934 | ROM_LOAD( "abc6-13.2k", 0x6000, 0x1000, CRC(6fa71fb6) SHA1(b037dfb3de7b65d244c6357cd146376d4237dab6) ) |
| 794 | 935 | ROM_LOAD( "abc7-21.2j", 0x7000, 0x1000, CRC(fd137866) SHA1(3ac914d90db1503f61397c0ea26914eb38725044) ) |
| 795 | 936 | |
| 796 | | ROM_ABC77 |
| 937 | ROM_KEYBOARD |
| 797 | 938 | |
| 798 | 939 | ROM_REGION( 0x0800, REGION_GFX1, 0 ) |
| 799 | 940 | ROM_LOAD( "vum-se.7c", 0x0000, 0x0800, CRC(f9152163) SHA1(997313781ddcbbb7121dbf9eb5f2c6b4551fc799) ) |
| r1983 | r1984 | |
| 804 | 945 | ROM_LOAD( "abc02-11.9f", 0x0000, 0x2000, CRC(b86537b2) SHA1(4b7731ef801f9a03de0b5acd955f1e4a1828355d) ) |
| 805 | 946 | ROM_LOAD( "abc12-11.11f", 0x2000, 0x2000, CRC(3561c671) SHA1(f12a7c0fe5670ffed53c794d96eb8959c4d9f828) ) |
| 806 | 947 | ROM_LOAD( "abc22-11.12f", 0x4000, 0x2000, CRC(8dcb1cc7) SHA1(535cfd66c84c0370fd022d6edf702d3d1ad1b113) ) |
| 807 | | ROM_SYSTEM_BIOS( 0, "v19", "UDF-DOS v.19" ) |
| 948 | ROM_SYSTEM_BIOS( 0, "v19", "UDF-DOS v6.19" ) |
| 808 | 949 | ROMX_LOAD( "abc32-21.14f", 0x6000, 0x2000, CRC(57050b98) SHA1(b977e54d1426346a97c98febd8a193c3e8259574), ROM_BIOS(1) ) |
| 809 | | ROM_SYSTEM_BIOS( 1, "v20", "UDF-DOS v.20" ) |
| 950 | ROM_SYSTEM_BIOS( 1, "v20", "UDF-DOS v6.20" ) |
| 810 | 951 | ROMX_LOAD( "abc32-31.14f", 0x6000, 0x2000, CRC(fc8be7a8) SHA1(a1d4cb45cf5ae21e636dddfa70c99bfd2050ad60), ROM_BIOS(2) ) |
| 811 | | ROM_SYSTEM_BIOS( 2, "mica", "MICA DOS v.20" ) |
| 952 | ROM_SYSTEM_BIOS( 2, "mica", "MICA DOS v6.20" ) |
| 812 | 953 | ROMX_LOAD( "mica820.14f", 0x6000, 0x2000, CRC(edf998af) SHA1(daae7e1ff6ef3e0ddb83e932f324c56f4a98f79b), ROM_BIOS(3) ) |
| 813 | 954 | |
| 814 | | ROM_ABC77 |
| 955 | ROM_KEYBOARD |
| 815 | 956 | |
| 816 | 957 | ROM_REGION( 0x2000, REGION_GFX1, 0 ) |
| 817 | 958 | ROM_LOAD( "abct2-11.3g", 0x0000, 0x2000, CRC(e21601ee) SHA1(2e838ebd7692e5cb9ba4e80fe2aa47ea2584133a) ) |
| r1983 | r1984 | |
| 838 | 979 | ROMX_LOAD( "cmd8_5.2k", 0x6000, 0x1000, CRC(25430ef7) SHA1(03a36874c23c215a19b0be14ad2f6b3b5fb2c839), ROM_BIOS(4) ) |
| 839 | 980 | ROM_LOAD( "abc76-11.2j", 0x7000, 0x1000, CRC(3eb5f6a1) SHA1(02d4e38009c71b84952eb3b8432ad32a98a7fe16) ) // 6490238-02 |
| 840 | 981 | |
| 841 | | ROM_ABC77 |
| 982 | ROM_KEYBOARD |
| 842 | 983 | |
| 843 | 984 | ROM_REGION( 0x1000, REGION_GFX1, 0 ) |
| 844 | 985 | ROM_LOAD( "abct6-11.7c", 0x0000, 0x1000, CRC(b17c51c5) SHA1(e466e80ec989fbd522c89a67d274b8f0bed1ff72) ) // 6490243-01 |
| r1983 | r1984 | |
| 955 | 1096 | SYSTEM_CONFIG_END |
| 956 | 1097 | |
| 957 | 1098 | SYSTEM_CONFIG_START( abc806 ) |
| 958 | | CONFIG_RAM_DEFAULT(64 * 1024) |
| 1099 | CONFIG_RAM_DEFAULT(128 * 1024) |
| 959 | 1100 | CONFIG_DEVICE(abc800_cassette_getinfo) |
| 960 | 1101 | CONFIG_DEVICE(abc800_printer_getinfo) |
| 961 | 1102 | CONFIG_DEVICE(abc800_floppy_getinfo) |