src/mess/drivers/px4.c
| r5645 | r5646 | |
| 62 | 62 | |
| 63 | 63 | UINT8 key_status; |
| 64 | 64 | UINT8 interrupt_status; |
| 65 | |
| 66 | /* external ramdisk */ |
| 67 | offs_t ramdisk_address; |
| 68 | UINT8 *ramdisk; |
| 65 | 69 | }; |
| 66 | 70 | |
| 67 | 71 | |
| r5645 | r5646 | |
| 561 | 565 | |
| 562 | 566 | |
| 563 | 567 | /*************************************************************************** |
| 568 | EXTERNAL RAM-DISK |
| 569 | ***************************************************************************/ |
| 570 | |
| 571 | static WRITE8_HANDLER( px4_ramdisk_address_w ) |
| 572 | { |
| 573 | px4_state *px4 = space->machine->driver_data; |
| 574 | |
| 575 | switch (offset) |
| 576 | { |
| 577 | case 0x00: px4->ramdisk_address = (px4->ramdisk_address & 0xffff00) | data; break; |
| 578 | case 0x01: px4->ramdisk_address = (px4->ramdisk_address & 0xff00ff) | (data << 8); break; |
| 579 | case 0x02: px4->ramdisk_address = (px4->ramdisk_address & 0x00ffff) | ((data & 0x07) << 16); break; |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | static READ8_HANDLER( px4_ramdisk_data_r ) |
| 584 | { |
| 585 | px4_state *px4 = space->machine->driver_data; |
| 586 | UINT8 ret = 0xff; |
| 587 | |
| 588 | if (px4->ramdisk_address < 0x20000) |
| 589 | { |
| 590 | /* read from ram */ |
| 591 | ret = px4->ramdisk[px4->ramdisk_address]; |
| 592 | } |
| 593 | else if (px4->ramdisk_address < 0x40000) |
| 594 | { |
| 595 | /* read from rom */ |
| 596 | ret = memory_region(space->machine, "ramdisk")[px4->ramdisk_address]; |
| 597 | } |
| 598 | |
| 599 | px4->ramdisk_address = (px4->ramdisk_address & 0xffff00) | ((px4->ramdisk_address & 0xff) + 1); |
| 600 | |
| 601 | return ret; |
| 602 | } |
| 603 | |
| 604 | static WRITE8_HANDLER( px4_ramdisk_data_w ) |
| 605 | { |
| 606 | px4_state *px4 = space->machine->driver_data; |
| 607 | |
| 608 | if (px4->ramdisk_address < 0x20000) |
| 609 | px4->ramdisk[px4->ramdisk_address] = data; |
| 610 | |
| 611 | px4->ramdisk_address = (px4->ramdisk_address & 0xffff00) | ((px4->ramdisk_address & 0xff) + 1); |
| 612 | } |
| 613 | |
| 614 | static READ8_HANDLER( px4_ramdisk_control_r ) |
| 615 | { |
| 616 | /* bit 7 determines the presence of a ram-disk */ |
| 617 | return 0x7f; |
| 618 | } |
| 619 | |
| 620 | static NVRAM_HANDLER( px4_ramdisk ) |
| 621 | { |
| 622 | px4_state *px4 = machine->driver_data; |
| 623 | |
| 624 | if (read_or_write) |
| 625 | mame_fwrite(file, px4->ramdisk, 0x20000); |
| 626 | else |
| 627 | if (file) |
| 628 | mame_fread(file, px4->ramdisk, 0x20000); |
| 629 | } |
| 630 | |
| 631 | |
| 632 | /*************************************************************************** |
| 564 | 633 | VIDEO EMULATION |
| 565 | 634 | ***************************************************************************/ |
| 566 | 635 | |
| r5645 | r5646 | |
| 627 | 696 | memory_set_bankptr(machine, 2, mess_ram + 0x8000); |
| 628 | 697 | } |
| 629 | 698 | |
| 699 | static DRIVER_INIT( px4p ) |
| 700 | { |
| 701 | px4_state *px4 = machine->driver_data; |
| 630 | 702 | |
| 703 | DRIVER_INIT_CALL(px4); |
| 704 | |
| 705 | /* reserve memory for external ram-disk */ |
| 706 | px4->ramdisk = auto_alloc_array(machine, UINT8, 0x20000); |
| 707 | } |
| 708 | |
| 709 | |
| 631 | 710 | /*************************************************************************** |
| 632 | 711 | ADDRESS MAPS |
| 633 | 712 | ***************************************************************************/ |
| r5645 | r5646 | |
| 663 | 742 | AM_RANGE(0x1a, 0x1f) AM_NOP |
| 664 | 743 | ADDRESS_MAP_END |
| 665 | 744 | |
| 745 | static ADDRESS_MAP_START( px4p_io, ADDRESS_SPACE_IO, 8 ) |
| 746 | AM_IMPORT_FROM(px4_io) |
| 747 | AM_RANGE(0x90, 0x92) AM_WRITE(px4_ramdisk_address_w) |
| 748 | AM_RANGE(0x93, 0x93) AM_READWRITE(px4_ramdisk_data_r, px4_ramdisk_data_w) |
| 749 | AM_RANGE(0x94, 0x94) AM_READ(px4_ramdisk_control_r) |
| 750 | ADDRESS_MAP_END |
| 666 | 751 | |
| 752 | |
| 667 | 753 | /*************************************************************************** |
| 668 | 754 | INPUT PORTS |
| 669 | 755 | ***************************************************************************/ |
| r5645 | r5646 | |
| 826 | 912 | palette_set_color(machine, 1, MAKE_RGB(92, 83, 88)); |
| 827 | 913 | } |
| 828 | 914 | |
| 915 | static PALETTE_INIT( px4p ) |
| 916 | { |
| 917 | palette_set_color(machine, 0, MAKE_RGB(149, 157, 130)); |
| 918 | palette_set_color(machine, 1, MAKE_RGB(92, 83, 88)); |
| 919 | } |
| 829 | 920 | |
| 921 | |
| 830 | 922 | /*************************************************************************** |
| 831 | 923 | MACHINE DRIVERS |
| 832 | 924 | ***************************************************************************/ |
| r5645 | r5646 | |
| 866 | 958 | MDRV_CARTSLOT_NOT_MANDATORY |
| 867 | 959 | MACHINE_DRIVER_END |
| 868 | 960 | |
| 961 | static MACHINE_DRIVER_START( px4p ) |
| 962 | MDRV_IMPORT_FROM(px4) |
| 869 | 963 | |
| 964 | MDRV_CPU_MODIFY("maincpu") |
| 965 | MDRV_CPU_IO_MAP(px4p_io) |
| 966 | |
| 967 | MDRV_NVRAM_HANDLER(px4_ramdisk) |
| 968 | |
| 969 | MDRV_PALETTE_INIT(px4p) |
| 970 | |
| 971 | MDRV_CARTSLOT_ADD("ramdisk") |
| 972 | MDRV_CARTSLOT_NOT_MANDATORY |
| 973 | MACHINE_DRIVER_END |
| 974 | |
| 975 | |
| 870 | 976 | /*************************************************************************** |
| 871 | 977 | ROM DEFINITIONS |
| 872 | 978 | ***************************************************************************/ |
| r5645 | r5646 | |
| 897 | 1003 | |
| 898 | 1004 | ROM_REGION(0x8000, "capsule2", 0) |
| 899 | 1005 | ROM_CART_LOAD("capsule2", 0x0000, 0x8000, ROM_OPTIONAL) |
| 1006 | |
| 1007 | ROM_REGION(0x20000, "ramdisk", 0) |
| 1008 | ROM_CART_LOAD("ramdisk", 0x0000, 0x20000, ROM_OPTIONAL | ROM_MIRROR) |
| 900 | 1009 | ROM_END |
| 901 | 1010 | |
| 902 | 1011 | |
| r5645 | r5646 | |
| 915 | 1024 | |
| 916 | 1025 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 917 | 1026 | COMP( 1985, px4, 0, 0, px4, px4_h450a, px4, px4, "Epson", "PX-4", 0 ) |
| 918 | | COMP( 1985, px4p, px4, 0, px4, px4_h450a, px4, px4, "Epson", "PX-4+", 0 ) |
| 1027 | COMP( 1985, px4p, px4, 0, px4p, px4_h450a, px4p, px4, "Epson", "PX-4+", 0 ) |
docs/messnew.txt
| r5645 | r5646 | |
| 67 | 67 | |
| 68 | 68 | - [PIPPIN] Added CD-ROM firmware. [incog nito] |
| 69 | 69 | |
| 70 | - [PX4] Added RAM disk support. [Dirk Best] |
| 71 | |
| 70 | 72 | - [SNES] Plenty of improvements to SNES emulation (see MAME whatsnew for |
| 71 | 73 | more details) [Fabio Priuli, Angelo Salese]: |
| 72 | 74 | * fixes to hi-res in Mode 5/6, interlaced graphics, rowscroll, window effect |
| r5645 | r5646 | |
| 656 | 658 | - Amateurcomputer AC1 [Miodrag Milanovic] |
| 657 | 659 | - Pilot 1000, Pilot 5000, PalmPilot Personal, PalmPilot Pro, Palm III |
| 658 | 660 | [MooglyGuy, R. Belmont] |
| 659 | | - Hewlett Packard HP 48 S/SX/G/GX/G+ [Antoine Miné] |
| 661 | - Hewlett Packard HP 48 S/SX/G/GX/G+ [Antoine Min�] |
| 660 | 662 | - Epson PX-4 [Dirk Best] |
| 661 | | - Various Channel F clones [Fredric QJ Blåholtz] |
| 663 | - Various Channel F clones [Fredric QJ Bl�holtz] |
| 662 | 664 | - Radionic [Incog, Robbbert] |
| 663 | 665 | |
| 664 | 666 | |
| r5645 | r5646 | |
| 683 | 685 | - [BW2] Updated to use the new centronics interface. [Dirk Best] |
| 684 | 686 | |
| 685 | 687 | - [CHANNELF] Added support for "new" sound, fixed PAL clock. [Fredric QJ |
| 686 | | Blåholtz] |
| 688 | Bl�holtz] |
| 687 | 689 | |
| 688 | 690 | - [COCO] Cleanups [Nathan Woods] |
| 689 | 691 | |
| r5645 | r5646 | |
| 1024 | 1026 | had plugged your joystick in port 2). This helps with games which expect |
| 1025 | 1027 | joystick inputs from port 2 of the C64 [Fabio Priuli] |
| 1026 | 1028 | |
| 1027 | | - [C64] Fixed memory leaks with floppies [Oliver Stöneberg] |
| 1029 | - [C64] Fixed memory leaks with floppies [Oliver St�neberg] |
| 1028 | 1030 | |
| 1029 | | - [C64] Fixed floppy unmounting [Oliver Stöneberg] |
| 1031 | - [C64] Fixed floppy unmounting [Oliver St�neberg] |
| 1030 | 1032 | |
| 1031 | 1033 | - [C65] Added preliminary cartridge support through MESS core functions. |
| 1032 | 1034 | Currently, .crt emulation uses unmodified C64 cart code and therefore |
| r5645 | r5646 | |
| 1075 | 1077 | |
| 1076 | 1078 | - [OSCNANO] Implemented RUN/MONITOR keys properly, changed video to |
| 1077 | 1079 | black and white, and fixed quickloading. System is now fully |
| 1078 | | working, including the "Säkkijärven polkka" program. [Curt Coder] |
| 1080 | working, including the "S�kkij�rven polkka" program. [Curt Coder] |
| 1079 | 1081 | |
| 1080 | 1082 | - [JUPITER] Fixed regression; driver works again. [Wilbert Pol] |
| 1081 | 1083 | |
| r5645 | r5646 | |
| 1136 | 1138 | single VP-580 Auxiliary Keyboard emulation. The VIP Blockout game can |
| 1137 | 1139 | now be played in color with sound using 2 keypads. [Curt Coder] |
| 1138 | 1140 | |
| 1139 | | - [X68000] Fixed SASI harddisk device info [Oliver Stöneberg] |
| 1141 | - [X68000] Fixed SASI harddisk device info [Oliver St�neberg] |
| 1140 | 1142 | |
| 1141 | 1143 | |
| 1142 | 1144 | |
| r5645 | r5646 | |
| 1149 | 1151 | Woods] |
| 1150 | 1152 | |
| 1151 | 1153 | - Added "Keyboard Mode" menu to switch between emulated and natural keyboard |
| 1152 | | during emulation. [Oliver Stöneberg] |
| 1154 | during emulation. [Oliver St�neberg] |
| 1153 | 1155 | |
| 1154 | 1156 | - Fixed toggling through multiple cassettes in Tape Control menu [Oliver |
| 1155 | | Stöneberg] |
| 1157 | St�neberg] |
| 1156 | 1158 | |
| 1157 | 1159 | - MESSUI now shows the actual values of the system configuration |
| 1158 | 1160 | settings instead of the defaults. (bug #1679) [Curt Coder] |
| r5645 | r5646 | |
| 1178 | 1180 | Woods] |
| 1179 | 1181 | |
| 1180 | 1182 | - Removed MESS_DEBUG and the TESTDRIVER define and enabled a lot of |
| 1181 | | non-working drivers [Oliver Stöneberg] |
| 1183 | non-working drivers [Oliver St�neberg] |
| 1182 | 1184 | |
| 1183 | 1185 | - Changed the cassette implementation into a regular mame device. [Wilbert Pol] |
| 1184 | 1186 | |
| r5645 | r5646 | |
| 1468 | 1470 | |
| 1469 | 1471 | - [CBM, C16] Simplified keyboard and interrupt handling code. [Fabio Priuli] |
| 1470 | 1472 | |
| 1471 | | - [C64] Fixed some timings in c64 pal. [Roberto Zandonà] |
| 1473 | - [C64] Fixed some timings in c64 pal. [Roberto Zandon�] |
| 1472 | 1474 | |
| 1473 | 1475 | - [C64] Partial input fix, joystick 2 still not working. (bug #1150) [Roberto |
| 1474 | | Zandonà] |
| 1476 | Zandon�] |
| 1475 | 1477 | |
| 1476 | 1478 | - [C64] Implentation of sprite wrapping at the top of the screen. (bug #1599) |
| 1477 | | [Roberto Zandonà] |
| 1479 | [Roberto Zandon�] |
| 1478 | 1480 | |
| 1479 | 1481 | - [COCO/COCO3] Transitioned Bitbanger and VHD support to use MAME's core |
| 1480 | 1482 | device system. [Nate Woods] |
| r5645 | r5646 | |
| 1652 | 1654 | |
| 1653 | 1655 | - [COCO] Added a quickload for .BIN files. [Nate Woods] |
| 1654 | 1656 | |
| 1655 | | - [COUPE] Added many new BIOS revisions. [Oliver Stöneberg] |
| 1657 | - [COUPE] Added many new BIOS revisions. [Oliver St�neberg] |
| 1656 | 1658 | |
| 1657 | 1659 | - [EP128] Fixed 0.119 regression in graphics display. (bug #1478) |
| 1658 | 1660 | [Wilbert Pol] |
| r5645 | r5646 | |
| 1934 | 1936 | to the data port. (bug #1378 and bug #1418) [Wilbert Pol] |
| 1935 | 1937 | |
| 1936 | 1938 | - [MEPHISTO] Implemented artwork/code for real chess board usage. [Ralf |
| 1937 | | Schäfer, Cowering] |
| 1939 | Sch�fer, Cowering] |
| 1938 | 1940 | |
| 1939 | 1941 | - [ORIC] Fixed floppy interface detection. [Dirk Best] |
| 1940 | 1942 | |
| r5645 | r5646 | |
| 7570 | 7572 | *"Engine" is separate from the "shell"; which gives the potential for front ends for |
| 7571 | 7573 | those who don't like command lines. [Nate Woods] |
| 7572 | 7574 | |
| 7573 | | - Disk write support for AMSTRAD CPC [Oscar Martín González] |
| 7575 | - Disk write support for AMSTRAD CPC [Oscar Mart�n Gonz�lez] |
| 7574 | 7576 | |
| 7575 | | - Wave timer fix [Oscar Martín González] |
| 7577 | - Wave timer fix [Oscar Mart�n Gonz�lez] |
| 7576 | 7578 | |
| 7577 | 7579 | - m6510t/m7501/m8502 CPU cores added [Peter Trauner] |
| 7578 | 7580 | |