src/mess/drivers/px4.c
| r6157 | r6158 | |
| 14 | 14 | #include "devices/cartslot.h" |
| 15 | 15 | #include "devices/cassette.h" |
| 16 | 16 | #include "machine/tf20.h" |
| 17 | #include "devices/messram.h" |
| 17 | 18 | #include "px4.lh" |
| 18 | | #include "devices/messram.h" |
| 19 | 19 | |
| 20 | |
| 20 | 21 | /*************************************************************************** |
| 21 | 22 | CONSTANTS |
| 22 | 23 | ***************************************************************************/ |
| r6157 | r6158 | |
| 35 | 36 | #define UPD7508_INT_Z80_RESET 0x10 |
| 36 | 37 | #define UPD7508_INT_ONE_SECOND 0x20 |
| 37 | 38 | |
| 39 | /* art (asynchronous receiver transmitter) */ |
| 40 | #define ART_TXRDY 0x01 /* output buffer empty */ |
| 41 | #define ART_RXRDY 0x02 /* data byte received */ |
| 42 | #define ART_TXEMPTY 0x04 /* transmit buffer empty */ |
| 43 | #define ART_PE 0x08 /* parity error */ |
| 44 | #define ART_OE 0x10 /* overrun error */ |
| 45 | #define ART_FE 0x20 /* framing error */ |
| 38 | 46 | |
| 47 | /* art baud rates */ |
| 48 | static const int transmit_rate[] = { 2112, 1536, 768, 384, 192, 96, 48, 24, 192, 3072, 12, 6, 1152 }; |
| 49 | static const int receive_rate[] = { 2112, 1536, 768, 384, 192, 96, 48, 24, 3072, 192, 12, 6, 1152 }; |
| 50 | |
| 51 | |
| 39 | 52 | /*************************************************************************** |
| 53 | MACROS |
| 54 | ***************************************************************************/ |
| 55 | |
| 56 | #define ART_TX_ENABLED (BIT(px4->artcr, 0)) |
| 57 | #define ART_RX_ENABLED (BIT(px4->artcr, 2)) |
| 58 | |
| 59 | #define ART_DATA (BIT(px4->artmr, 2)) /* number of data bits, 7 or 8 */ |
| 60 | #define ART_PEN (BIT(px4->artmr, 4)) /* parity enabled */ |
| 61 | #define ART_EVEN (BIT(px4->artmr, 5)) /* even or odd parity */ |
| 62 | #define ART_STOP (BIT(px4->artmr, 7)) /* number of stop bits, 1 or 2 */ |
| 63 | |
| 64 | |
| 65 | /*************************************************************************** |
| 40 | 66 | TYPE DEFINITIONS |
| 41 | 67 | ***************************************************************************/ |
| 42 | 68 | |
| r6157 | r6158 | |
| 63 | 89 | UINT8 vadr; |
| 64 | 90 | UINT8 yoff; |
| 65 | 91 | |
| 92 | /* gapnio */ |
| 93 | emu_timer *receive_timer; |
| 94 | emu_timer *transmit_timer; |
| 95 | UINT8 artdir; |
| 96 | UINT8 artdor; |
| 97 | UINT8 artsr; |
| 98 | UINT8 artmr; |
| 99 | UINT8 artcr; |
| 100 | UINT8 swr; |
| 101 | |
| 66 | 102 | /* 7508 internal */ |
| 67 | 103 | int one_sec_int_enabled; |
| 68 | 104 | int alarm_int_enabled; |
| r6157 | r6158 | |
| 71 | 107 | UINT8 key_status; |
| 72 | 108 | UINT8 interrupt_status; |
| 73 | 109 | |
| 110 | /* centronics printer */ |
| 111 | const device_config *printer; |
| 112 | |
| 74 | 113 | /* external ramdisk */ |
| 75 | 114 | offs_t ramdisk_address; |
| 76 | 115 | UINT8 *ramdisk; |
| r6157 | r6158 | |
| 79 | 118 | const device_config *ext_cas; |
| 80 | 119 | emu_timer *ext_cas_timer; |
| 81 | 120 | int ear_last_state; |
| 121 | |
| 122 | /* external devices */ |
| 123 | const device_config *sio_device; |
| 124 | const device_config *rs232c_device; |
| 82 | 125 | }; |
| 83 | 126 | |
| 84 | 127 | |
| 85 | 128 | /*************************************************************************** |
| 129 | SERIAL PORT |
| 130 | ***************************************************************************/ |
| 131 | |
| 132 | /* The floppy is connected to this port */ |
| 133 | |
| 134 | static WRITE_LINE_DEVICE_HANDLER( px4_sio_txd ) |
| 135 | { |
| 136 | logerror("px4_sio_txd: %d\n", state); |
| 137 | |
| 138 | if (device != NULL) |
| 139 | tf20_txs_w(device, state); |
| 140 | } |
| 141 | |
| 142 | static READ_LINE_DEVICE_HANDLER( px4_sio_rxd ) |
| 143 | { |
| 144 | logerror("px4_sio_rxd\n"); |
| 145 | |
| 146 | if (device != NULL) |
| 147 | return tf20_rxs_r(device); |
| 148 | else |
| 149 | return ASSERT_LINE; |
| 150 | } |
| 151 | |
| 152 | static READ_LINE_DEVICE_HANDLER( px4_sio_pin ) |
| 153 | { |
| 154 | logerror("px4_sio_pin\n"); |
| 155 | |
| 156 | if (device != NULL) |
| 157 | return tf20_pins_r(device); |
| 158 | else |
| 159 | return ASSERT_LINE; |
| 160 | } |
| 161 | |
| 162 | static WRITE_LINE_DEVICE_HANDLER( px4_sio_pout ) |
| 163 | { |
| 164 | logerror("px4_sio_pout: %d\n", state); |
| 165 | |
| 166 | if (device != NULL) |
| 167 | tf20_pouts_w(device, state); |
| 168 | } |
| 169 | |
| 170 | |
| 171 | /*************************************************************************** |
| 172 | RS232C PORT |
| 173 | ***************************************************************************/ |
| 174 | |
| 175 | /* Currently nothing is connected to this port */ |
| 176 | |
| 177 | static WRITE_LINE_DEVICE_HANDLER( px4_rs232c_txd ) |
| 178 | { |
| 179 | logerror("px4_rs232c_txd: %d\n", state); |
| 180 | } |
| 181 | |
| 182 | #ifdef UNUSED_FUNCTION |
| 183 | static READ_LINE_DEVICE_HANDLER( px4_rs232c_rxd ) |
| 184 | { |
| 185 | logerror("px4_rs232c_rxd\n"); |
| 186 | return ASSERT_LINE; |
| 187 | } |
| 188 | #endif |
| 189 | |
| 190 | static WRITE_LINE_DEVICE_HANDLER( px4_rs232c_rts ) |
| 191 | { |
| 192 | logerror("px4_rs232c_rts: %d\n", state); |
| 193 | } |
| 194 | |
| 195 | static READ_LINE_DEVICE_HANDLER( px4_rs232c_cts ) |
| 196 | { |
| 197 | logerror("px4_rs232c_cts\n"); |
| 198 | return ASSERT_LINE; |
| 199 | } |
| 200 | |
| 201 | static READ_LINE_DEVICE_HANDLER( px4_rs232c_dsr ) |
| 202 | { |
| 203 | logerror("px4_rs232c_dsr\n"); |
| 204 | return ASSERT_LINE; |
| 205 | } |
| 206 | |
| 207 | static WRITE_LINE_DEVICE_HANDLER( px4_rs232c_dtr ) |
| 208 | { |
| 209 | logerror("px4_rs232c_dtr: %d\n", state); |
| 210 | } |
| 211 | |
| 212 | static READ_LINE_DEVICE_HANDLER( px4_rs232c_dcd ) |
| 213 | { |
| 214 | logerror("px4_rs232c_dcd\n"); |
| 215 | return ASSERT_LINE; |
| 216 | } |
| 217 | |
| 218 | |
| 219 | /*************************************************************************** |
| 86 | 220 | GAPNIT |
| 87 | 221 | ***************************************************************************/ |
| 88 | 222 | |
| r6157 | r6158 | |
| 178 | 312 | static WRITE8_HANDLER( px4_ctrl1_w ) |
| 179 | 313 | { |
| 180 | 314 | px4_state *px4 = space->machine->driver_data; |
| 315 | int baud; |
| 181 | 316 | |
| 182 | 317 | logerror("%s: px4_ctrl1_w (0x%02x)\n", cpuexec_describe_context(space->machine), data); |
| 183 | 318 | |
| 319 | /* baudrate generator */ |
| 320 | baud = data >> 4; |
| 321 | |
| 322 | if (baud <= 12) |
| 323 | { |
| 324 | timer_adjust_periodic(px4->transmit_timer, attotime_zero, 0, ATTOTIME_IN_HZ(XTAL_7_3728MHz/2/transmit_rate[baud])); |
| 325 | timer_adjust_periodic(px4->receive_timer, attotime_zero, 0, ATTOTIME_IN_HZ(XTAL_7_3728MHz/2/receive_rate[baud])); |
| 326 | } |
| 327 | |
| 184 | 328 | px4->ctrl1 = data; |
| 185 | 329 | } |
| 186 | 330 | |
| r6157 | r6158 | |
| 282 | 426 | |
| 283 | 427 | logerror("%s: px4_str_r\n", cpuexec_describe_context(space->machine)); |
| 284 | 428 | |
| 285 | | /* bit 0, EAR, cassette input */ |
| 286 | 429 | result |= cassette_input(px4->ext_cas) > 0 ? 1 : 0; |
| 430 | result |= 1 << 1; /* BCRD, barcode reader input */ |
| 431 | result |= 1 << 2; /* RDY signal from 7805 */ |
| 432 | result |= 1 << 3; /* RDYSIO, enable access to the 7805 */ |
| 433 | result |= px4->bankr & 0xf0; /* bit 4-7, BANK - memory bank */ |
| 287 | 434 | |
| 288 | | /* bit 1, BCRD, barcode reader input */ |
| 289 | | result |= 1 << 1; |
| 290 | | |
| 291 | | /* bit 2, RDY signal from 7805 */ |
| 292 | | result |= 1 << 2; |
| 293 | | |
| 294 | | /* bit 3, RDYSIO, enable access to the 7805 */ |
| 295 | | result |= 1 << 3; |
| 296 | | |
| 297 | | /* bit 4-7, BANK, memory bank */ |
| 298 | | result |= px4->bankr & 0xf0; |
| 299 | | |
| 300 | 435 | return result; |
| 301 | 436 | } |
| 302 | 437 | |
| r6157 | r6158 | |
| 475 | 610 | |
| 476 | 611 | |
| 477 | 612 | /*************************************************************************** |
| 478 | | GAPNDI |
| 613 | GAPNDL |
| 479 | 614 | ***************************************************************************/ |
| 480 | 615 | |
| 481 | 616 | /* vram start address register */ |
| r6157 | r6158 | |
| 510 | 645 | |
| 511 | 646 | |
| 512 | 647 | /*************************************************************************** |
| 513 | | GAPNDL |
| 648 | GAPNIO |
| 514 | 649 | ***************************************************************************/ |
| 515 | 650 | |
| 651 | static TIMER_CALLBACK( transmit_data ) |
| 652 | { |
| 653 | px4_state *px4 = machine->driver_data; |
| 654 | |
| 655 | if (ART_TX_ENABLED) |
| 656 | { |
| 657 | |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | static TIMER_CALLBACK( receive_data ) |
| 662 | { |
| 663 | px4_state *px4 = machine->driver_data; |
| 664 | |
| 665 | if (ART_RX_ENABLED) |
| 666 | { |
| 667 | |
| 668 | } |
| 669 | } |
| 670 | |
| 516 | 671 | /* cartridge interface */ |
| 517 | 672 | static READ8_HANDLER( px4_ctgif_r ) |
| 518 | 673 | { |
| r6157 | r6158 | |
| 529 | 684 | /* art data input register */ |
| 530 | 685 | static READ8_HANDLER( px4_artdir_r ) |
| 531 | 686 | { |
| 687 | px4_state *px4 = space->machine->driver_data; |
| 532 | 688 | logerror("%s: px4_artdir_r\n", cpuexec_describe_context(space->machine)); |
| 533 | | return 0xff; |
| 689 | |
| 690 | return px4->artdir; |
| 534 | 691 | } |
| 535 | 692 | |
| 536 | 693 | /* art data output register */ |
| 537 | 694 | static WRITE8_HANDLER( px4_artdor_w ) |
| 538 | 695 | { |
| 696 | px4_state *px4 = space->machine->driver_data; |
| 539 | 697 | logerror("%s: px4_artdor_w (0x%02x)\n", cpuexec_describe_context(space->machine), data); |
| 698 | |
| 699 | px4->artdor = data; |
| 540 | 700 | } |
| 541 | 701 | |
| 542 | 702 | /* art status register */ |
| 543 | 703 | static READ8_HANDLER( px4_artsr_r ) |
| 544 | 704 | { |
| 705 | px4_state *px4 = space->machine->driver_data; |
| 706 | UINT8 result = 0; |
| 707 | |
| 545 | 708 | logerror("%s: px4_artsr_r\n", cpuexec_describe_context(space->machine)); |
| 546 | | return 0x05; |
| 709 | |
| 710 | result |= px4_rs232c_dsr(px4->rs232c_device) << 7; |
| 711 | |
| 712 | return result | px4->artsr; |
| 547 | 713 | } |
| 548 | 714 | |
| 549 | 715 | /* art mode register */ |
| 550 | 716 | static WRITE8_HANDLER( px4_artmr_w ) |
| 551 | 717 | { |
| 718 | px4_state *px4 = space->machine->driver_data; |
| 552 | 719 | logerror("%s: px4_artmr_w (0x%02x)\n", cpuexec_describe_context(space->machine), data); |
| 720 | |
| 721 | px4->artmr = data; |
| 553 | 722 | } |
| 554 | 723 | |
| 555 | 724 | /* io status register */ |
| 556 | 725 | static READ8_HANDLER( px4_iostr_r ) |
| 557 | 726 | { |
| 558 | | const device_config *printer = devtag_get_device(space->machine, "centronics"); |
| 559 | | int result = 0; |
| 727 | px4_state *px4 = space->machine->driver_data; |
| 728 | UINT8 result = 0; |
| 560 | 729 | |
| 561 | 730 | logerror("%s: px4_iostr_r\n", cpuexec_describe_context(space->machine)); |
| 562 | 731 | |
| 563 | | /* centronics status */ |
| 564 | | result |= centronics_busy_r(printer); |
| 565 | | result |= !centronics_pe_r(printer) << 1; |
| 732 | result |= centronics_busy_r(px4->printer) << 0; |
| 733 | result |= !centronics_pe_r(px4->printer) << 1; |
| 734 | result |= px4_sio_pin(px4->sio_device) << 2; |
| 735 | result |= px4_sio_rxd(px4->sio_device) << 3; |
| 736 | result |= px4_rs232c_dcd(px4->rs232c_device) << 4; |
| 737 | result |= px4_rs232c_cts(px4->rs232c_device) << 5; |
| 738 | result |= 1 << 6; /* bit 6, csel, cartridge option select signal, set to 'other mode' */ |
| 739 | result |= 0 << 7; /* bit 7, caud - audio input from cartridge */ |
| 566 | 740 | |
| 567 | | /* cartridge option select signal, set to 'other mode' */ |
| 568 | | result |= 0x40; |
| 569 | | |
| 570 | 741 | return result; |
| 571 | 742 | } |
| 572 | 743 | |
| 573 | 744 | /* art command register */ |
| 574 | 745 | static WRITE8_HANDLER( px4_artcr_w ) |
| 575 | 746 | { |
| 747 | px4_state *px4 = space->machine->driver_data; |
| 576 | 748 | logerror("%s: px4_artcr_w (0x%02x)\n", cpuexec_describe_context(space->machine), data); |
| 749 | |
| 750 | px4->artcr = data; |
| 751 | |
| 752 | /* bit 0, txe - transmit enable */ |
| 753 | if (!ART_TX_ENABLED) |
| 754 | { |
| 755 | /* force high when disabled */ |
| 756 | px4_sio_txd(px4->sio_device, ASSERT_LINE); |
| 757 | px4_rs232c_txd(px4->rs232c_device, ASSERT_LINE); |
| 758 | } |
| 759 | |
| 760 | /* bit 3, sbrk - break output */ |
| 761 | if (ART_TX_ENABLED && BIT(data, 3)) |
| 762 | { |
| 763 | /* force low when enabled and transmit enabled */ |
| 764 | px4_sio_txd(px4->sio_device, CLEAR_LINE); |
| 765 | px4_rs232c_txd(px4->rs232c_device, CLEAR_LINE); |
| 766 | } |
| 767 | |
| 768 | /* error reset */ |
| 769 | if (BIT(data, 4)) |
| 770 | px4->artsr &= ~(ART_PE | ART_OE | ART_FE); |
| 771 | |
| 772 | px4_rs232c_dtr(px4->rs232c_device, BIT(data, 1)); |
| 773 | px4_rs232c_rts(px4->rs232c_device, BIT(data, 5)); |
| 577 | 774 | } |
| 578 | 775 | |
| 579 | 776 | /* switch register */ |
| 580 | 777 | static WRITE8_HANDLER( px4_swr_w ) |
| 581 | 778 | { |
| 779 | px4_state *px4 = space->machine->driver_data; |
| 582 | 780 | logerror("%s: px4_swr_w (0x%02x)\n", cpuexec_describe_context(space->machine), data); |
| 781 | |
| 782 | px4->swr = data; |
| 583 | 783 | } |
| 584 | 784 | |
| 585 | 785 | /* io control register */ |
| 586 | 786 | static WRITE8_HANDLER( px4_ioctlr_w ) |
| 587 | 787 | { |
| 588 | | const device_config *printer = devtag_get_device(space->machine, "centronics"); |
| 788 | px4_state *px4 = space->machine->driver_data; |
| 589 | 789 | |
| 590 | 790 | logerror("%s: px4_ioctlr_w (0x%02x)\n", cpuexec_describe_context(space->machine), data); |
| 591 | 791 | |
| 592 | | /* centronics strobe and reset */ |
| 593 | | centronics_strobe_w(printer, !BIT(data, 0)); |
| 594 | | centronics_prime_w(printer, BIT(data, 1)); |
| 792 | centronics_strobe_w(px4->printer, !BIT(data, 0)); |
| 793 | centronics_prime_w(px4->printer, BIT(data, 1)); |
| 595 | 794 | |
| 596 | | /* status leds */ |
| 795 | px4_sio_pout(px4->sio_device, BIT(data, 2)); |
| 796 | |
| 797 | /* bit 3, cartridge reset */ |
| 798 | |
| 597 | 799 | output_set_value("led_0", BIT(data, 4)); /* caps lock */ |
| 598 | 800 | output_set_value("led_1", BIT(data, 5)); /* num lock */ |
| 599 | | output_set_value("led_2", BIT(data, 6)); |
| 801 | output_set_value("led_2", BIT(data, 6)); /* "led 2" */ |
| 802 | |
| 803 | /* bit 7, sp - speaker */ |
| 600 | 804 | } |
| 601 | 805 | |
| 602 | 806 | |
| r6157 | r6158 | |
| 787 | 991 | px4->key_int_enabled = TRUE; |
| 788 | 992 | px4->alarm_int_enabled = TRUE; |
| 789 | 993 | |
| 994 | /* art */ |
| 995 | px4->receive_timer = timer_alloc(machine, receive_data, NULL); |
| 996 | px4->transmit_timer = timer_alloc(machine, transmit_data, NULL); |
| 997 | |
| 998 | /* printer */ |
| 999 | px4->printer = devtag_get_device(machine, "centronics"); |
| 1000 | |
| 790 | 1001 | /* external cassette or barcode reader */ |
| 791 | 1002 | px4->ext_cas_timer = timer_alloc(machine, ext_cassette_read, NULL); |
| 792 | 1003 | px4->ext_cas = devtag_get_device(machine, "extcas"); |
| 793 | 1004 | px4->ear_last_state = 0; |
| 794 | 1005 | |
| 1006 | /* external devices */ |
| 1007 | px4->sio_device = devtag_get_device(machine, "floppy"); |
| 1008 | px4->rs232c_device = NULL; |
| 1009 | |
| 795 | 1010 | /* map os rom and last half of memory */ |
| 796 | 1011 | memory_set_bankptr(machine, 1, memory_region(machine, "os")); |
| 797 | 1012 | memory_set_bankptr(machine, 2, messram_get_ptr(px4->ram) + 0x8000); |
| r6157 | r6158 | |
| 807 | 1022 | px4->ramdisk = auto_alloc_array(machine, UINT8, 0x20000); |
| 808 | 1023 | } |
| 809 | 1024 | |
| 1025 | static MACHINE_RESET( px4 ) |
| 1026 | { |
| 1027 | px4_state *px4 = machine->driver_data; |
| 810 | 1028 | |
| 1029 | px4->artsr = ART_TXRDY | ART_TXEMPTY; |
| 1030 | } |
| 1031 | |
| 1032 | |
| 811 | 1033 | /*************************************************************************** |
| 812 | 1034 | ADDRESS MAPS |
| 813 | 1035 | ***************************************************************************/ |
| r6157 | r6158 | |
| 820 | 1042 | static ADDRESS_MAP_START( px4_io, ADDRESS_SPACE_IO, 8 ) |
| 821 | 1043 | ADDRESS_MAP_UNMAP_HIGH |
| 822 | 1044 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 1045 | /* gapnit, 0x00-0x07 */ |
| 823 | 1046 | AM_RANGE(0x00, 0x00) AM_READWRITE(px4_icrlc_r, px4_ctrl1_w) |
| 824 | 1047 | AM_RANGE(0x01, 0x01) AM_READWRITE(px4_icrhc_r, px4_cmdr_w) |
| 825 | 1048 | AM_RANGE(0x02, 0x02) AM_READWRITE(px4_icrlb_r, px4_ctrl2_w) |
| r6157 | r6158 | |
| 828 | 1051 | AM_RANGE(0x05, 0x05) AM_READWRITE(px4_str_r, px4_bankr_w) |
| 829 | 1052 | AM_RANGE(0x06, 0x06) AM_READWRITE(px4_sior_r, px4_sior_w) |
| 830 | 1053 | AM_RANGE(0x07, 0x07) AM_NOP |
| 1054 | /* gapndl, 0x08-0x0f */ |
| 831 | 1055 | AM_RANGE(0x08, 0x08) AM_WRITE(px4_vadr_w) |
| 832 | 1056 | AM_RANGE(0x09, 0x09) AM_WRITE(px4_yoff_w) |
| 833 | 1057 | AM_RANGE(0x0a, 0x0a) AM_WRITE(px4_fr_w) |
| 834 | 1058 | AM_RANGE(0x0b, 0x0b) AM_WRITE(px4_spur_w) |
| 835 | 1059 | AM_RANGE(0x0c, 0x0f) AM_NOP |
| 1060 | /* gapnio, 0x10-0x1f */ |
| 836 | 1061 | AM_RANGE(0x10, 0x13) AM_READWRITE(px4_ctgif_r, px4_ctgif_w) |
| 837 | 1062 | AM_RANGE(0x14, 0x14) AM_READWRITE(px4_artdir_r, px4_artdor_w) |
| 838 | 1063 | AM_RANGE(0x15, 0x15) AM_READWRITE(px4_artsr_r, px4_artmr_w) |
| r6157 | r6158 | |
| 1032 | 1257 | }; |
| 1033 | 1258 | |
| 1034 | 1259 | static MACHINE_DRIVER_START( px4 ) |
| 1260 | MDRV_DRIVER_DATA(px4_state) |
| 1261 | |
| 1035 | 1262 | /* basic machine hardware */ |
| 1036 | | MDRV_CPU_ADD("maincpu", Z80, XTAL_7_3728MHz/2) /* uPD70008 */ |
| 1263 | MDRV_CPU_ADD("maincpu", Z80, XTAL_7_3728MHz / 2) /* uPD70008 */ |
| 1037 | 1264 | MDRV_CPU_PROGRAM_MAP(px4_mem) |
| 1038 | 1265 | MDRV_CPU_IO_MAP(px4_io) |
| 1039 | 1266 | |
| 1040 | | MDRV_DRIVER_DATA(px4_state) |
| 1267 | MDRV_MACHINE_RESET(px4) |
| 1041 | 1268 | |
| 1042 | 1269 | /* video hardware */ |
| 1043 | 1270 | MDRV_SCREEN_ADD("screen", LCD) |
| 1044 | | MDRV_SCREEN_REFRESH_RATE(44) |
| 1271 | MDRV_SCREEN_REFRESH_RATE(72) |
| 1045 | 1272 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1046 | 1273 | MDRV_SCREEN_SIZE(240, 64) |
| 1047 | 1274 | MDRV_SCREEN_VISIBLE_AREA(0, 239, 0, 63) |
| r6157 | r6158 | |
| 1054 | 1281 | MDRV_VIDEO_UPDATE(px4) |
| 1055 | 1282 | |
| 1056 | 1283 | MDRV_TIMER_ADD_PERIODIC("one_sec", upd7508_1sec_callback, SEC(1)) |
| 1057 | | MDRV_TIMER_ADD_PERIODIC("frc", frc_tick, NSEC(1628)) |
| 1284 | MDRV_TIMER_ADD_PERIODIC("frc", frc_tick, HZ(XTAL_7_3728MHz / 2 / 6)) |
| 1058 | 1285 | |
| 1059 | 1286 | /* internal ram */ |
| 1060 | 1287 | MDRV_RAM_ADD("messram") |
| r6157 | r6158 | |
| 1073 | 1300 | MDRV_CARTSLOT_NOT_MANDATORY |
| 1074 | 1301 | |
| 1075 | 1302 | /* tf20 floppy drive */ |
| 1076 | | // MDRV_TF20_ADD("tf20") |
| 1303 | // MDRV_TF20_ADD("floppy") |
| 1077 | 1304 | MACHINE_DRIVER_END |
| 1078 | 1305 | |
| 1079 | 1306 | static MACHINE_DRIVER_START( px4p ) |
| r6157 | r6158 | |
| 1095 | 1322 | ROM DEFINITIONS |
| 1096 | 1323 | ***************************************************************************/ |
| 1097 | 1324 | |
| 1325 | /* Note: We are missing "Kana OS V1.0" and "Kana OS V2.0" (Japanese version) */ |
| 1326 | |
| 1098 | 1327 | ROM_START( px4 ) |
| 1099 | 1328 | ROM_REGION(0x8000, "os", 0) |
| 1100 | 1329 | ROM_LOAD("m25122aa_po_px4.10c", 0x0000, 0x8000, CRC(62d60dc6) SHA1(3d32ec79a317de7c84c378302e95f48d56505502)) |