src/mess/drivers/super80.c
| r2573 | r2574 | |
| 472 | 472 | last_data = data; |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | static WRITE8_HANDLER( super80r_f0_w ) |
| 476 | { |
| 477 | UINT8 bits = data ^ last_data; |
| 478 | |
| 479 | if (bits & 0x20) set_led_status(2,(data & 32) ? 0 : 1); /* bit 5 - LED - scroll lock led is used */ |
| 480 | speaker_level_w(0, (data & 8) ? 0 : 1); /* bit 3 - speaker */ |
| 481 | if (bits & 0x02) cassette_motor( machine, data & 2 ? 1 : 0); /* bit 1 - cassette motor */ |
| 482 | if (bits & 0x01) cassette_output(cassette_device_image(), (data & 1) ? -1.0 : +1.0); /* bit 0 - cass out */ |
| 483 | |
| 484 | last_data = data; |
| 485 | } |
| 486 | |
| 475 | 487 | static WRITE8_HANDLER( super80v_f0_w ) |
| 476 | 488 | { |
| 477 | 489 | UINT8 bits = data ^ last_data; |
| r2573 | r2574 | |
| 540 | 552 | AM_RANGE(0xfb, 0xfb) AM_MIRROR(0x04) AM_READWRITE(super80_fb_r,super80_fb_w) |
| 541 | 553 | ADDRESS_MAP_END |
| 542 | 554 | |
| 555 | static ADDRESS_MAP_START( super80r_io, ADDRESS_SPACE_IO, 8 ) |
| 556 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 557 | ADDRESS_MAP_UNMAP_HIGH |
| 558 | AM_RANGE(0x10, 0x10) AM_WRITE(super80v_10_w) |
| 559 | AM_RANGE(0x11, 0x11) AM_READWRITE(super80v_11_r, super80v_11_w) |
| 560 | AM_RANGE(0xe0, 0xe0) AM_MIRROR(0x14) AM_WRITE(super80r_f0_w) |
| 561 | AM_RANGE(0xe2, 0xe2) AM_MIRROR(0x14) AM_READ(super80_f2_r) |
| 562 | AM_RANGE(0xf8, 0xf8) AM_MIRROR(0x04) AM_READWRITE(super80_f8_r,super80_f8_w) |
| 563 | AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x04) AM_READWRITE(super80_f9_r,super80_f9_w) |
| 564 | AM_RANGE(0xfa, 0xfa) AM_MIRROR(0x04) AM_READWRITE(super80_fa_r,super80_fa_w) |
| 565 | AM_RANGE(0xfb, 0xfb) AM_MIRROR(0x04) AM_READWRITE(super80_fb_r,super80_fb_w) |
| 566 | ADDRESS_MAP_END |
| 567 | |
| 543 | 568 | static ADDRESS_MAP_START( super80v_io, ADDRESS_SPACE_IO, 8 ) |
| 544 | 569 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 545 | 570 | ADDRESS_MAP_UNMAP_HIGH |
| r2573 | r2574 | |
| 683 | 708 | PORT_BIT( 0x16, 0x16, IPT_UNUSED ) |
| 684 | 709 | INPUT_PORTS_END |
| 685 | 710 | |
| 711 | static INPUT_PORTS_START( super80r ) |
| 712 | PORT_INCLUDE( super80v ) |
| 713 | |
| 714 | PORT_MODIFY("CONFIG") |
| 715 | PORT_BIT( 0x16, 0x16, IPT_UNUSED ) |
| 716 | PORT_CONFNAME( 0x60, 0x40, "Colour") |
| 717 | PORT_CONFSETTING( 0x60, "MonoChrome") |
| 718 | PORT_CONFSETTING( 0x40, "Green") |
| 719 | INPUT_PORTS_END |
| 720 | |
| 686 | 721 | /**************************** GRAPHICS DECODE *****************************************************************/ |
| 687 | 722 | |
| 688 | 723 | static const gfx_layout super80_charlayout = |
| r2573 | r2574 | |
| 868 | 903 | MDRV_Z80BIN_QUICKLOAD_ADD(default, 1) |
| 869 | 904 | MACHINE_DRIVER_END |
| 870 | 905 | |
| 906 | static MACHINE_DRIVER_START( super80r ) |
| 907 | MDRV_IMPORT_FROM(super80v) |
| 908 | MDRV_CPU_MODIFY("main") |
| 909 | MDRV_CPU_IO_MAP(super80r_io, 0) |
| 910 | MACHINE_DRIVER_END |
| 911 | |
| 871 | 912 | static void driver_init_common( void ) |
| 872 | 913 | { |
| 873 | 914 | UINT8 *RAM = memory_region(REGION_CPU1); |
| r2573 | r2574 | |
| 902 | 943 | |
| 903 | 944 | ROM_START( super80 ) |
| 904 | 945 | ROM_REGION(0x10000, REGION_CPU1, 0) |
| 905 | | ROM_LOAD("super80.u26", 0xc000, 0x1000, CRC(6a6a9664) SHA1(2c4fcd943aa9bf7419d58fbc0e28ffb89ef22e0b) ) |
| 906 | | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 907 | | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 946 | ROM_LOAD("super80.u26", 0xc000, 0x1000, CRC(6a6a9664) SHA1(2c4fcd943aa9bf7419d58fbc0e28ffb89ef22e0b) ) |
| 947 | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 948 | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 908 | 949 | |
| 909 | 950 | ROM_REGION(0x0400, REGION_GFX1, ROMREGION_DISPOSE) |
| 910 | | ROM_LOAD("super80.u27", 0x0000, 0x0400, CRC(d1e4b3c6) SHA1(3667b97c6136da4761937958f281609690af4081) ) |
| 951 | ROM_LOAD("super80.u27", 0x0000, 0x0400, CRC(d1e4b3c6) SHA1(3667b97c6136da4761937958f281609690af4081) ) |
| 911 | 952 | ROM_END |
| 912 | 953 | |
| 913 | 954 | ROM_START( super80d ) |
| 914 | 955 | ROM_REGION(0x10000, REGION_CPU1, 0) |
| 915 | | ROM_LOAD("super80d.u26", 0xc000, 0x1000, CRC(cebd2613) SHA1(87b94cc101a5948ce590211c68272e27f4cbe95a) ) |
| 916 | | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 917 | | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 956 | ROM_SYSTEM_BIOS(0, "super80d", "V2.2") |
| 957 | ROMX_LOAD("super80d.u26", 0xc000, 0x1000, CRC(cebd2613) SHA1(87b94cc101a5948ce590211c68272e27f4cbe95a), ROM_BIOS(1)) |
| 958 | ROM_SYSTEM_BIOS(1, "super80f", "MDS (original)") |
| 959 | ROMX_LOAD("super80f.u26", 0xc000, 0x1000, CRC(d39775f0) SHA1(b47298ee028924612e9728bb2debd0f47399add7), ROM_BIOS(2)) |
| 960 | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 961 | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 918 | 962 | |
| 919 | 963 | ROM_REGION(0x1000, REGION_GFX1, ROMREGION_DISPOSE) |
| 920 | | ROM_LOAD("super80d.u27", 0x0000, 0x0800, CRC(cb4c81e2) SHA1(8096f21c914fa76df5d23f74b1f7f83bd8645783) ) |
| 921 | | ROM_RELOAD( 0x0800, 0x0800 ) |
| 964 | ROM_LOAD("super80d.u27", 0x0000, 0x0800, CRC(cb4c81e2) SHA1(8096f21c914fa76df5d23f74b1f7f83bd8645783) ) |
| 965 | ROM_RELOAD( 0x0800, 0x0800 ) |
| 922 | 966 | ROM_END |
| 923 | 967 | |
| 924 | 968 | ROM_START( super80e ) |
| 925 | 969 | ROM_REGION(0x10000, REGION_CPU1, 0) |
| 926 | | ROM_LOAD("super80e.u26", 0xc000, 0x1000, CRC(bdc668f8) SHA1(3ae30b3cab599fca77d5e461f3ec1acf404caf07) ) |
| 927 | | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 928 | | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 970 | ROM_LOAD("super80e.u26", 0xc000, 0x1000, CRC(bdc668f8) SHA1(3ae30b3cab599fca77d5e461f3ec1acf404caf07) ) |
| 971 | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 972 | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 929 | 973 | |
| 930 | 974 | ROM_REGION(0x1000, REGION_GFX1, ROMREGION_DISPOSE) |
| 931 | | ROM_LOAD("super80e.u27", 0x0000, 0x1000, CRC(ebe763a7) SHA1(ffaa6d6a2c5dacc5a6651514e6707175a32e83e8) ) |
| 975 | ROM_LOAD("super80e.u27", 0x0000, 0x1000, CRC(ebe763a7) SHA1(ffaa6d6a2c5dacc5a6651514e6707175a32e83e8) ) |
| 932 | 976 | ROM_END |
| 933 | 977 | |
| 934 | 978 | ROM_START( super80m ) |
| 935 | 979 | ROM_REGION(0x10000, REGION_CPU1, 0) |
| 936 | | ROM_LOAD("s80-8r0.u26", 0xc000, 0x1000, CRC(48d410d8) SHA1(750d984abc013a3344628300288f6d1ba140a95f) ) |
| 937 | | ROM_LOAD("s80-8r0.u33", 0xd000, 0x1000, CRC(9765793e) SHA1(4951b127888c1f3153004cc9fb386099b408f52c) ) |
| 938 | | ROM_LOAD("s80-8r0.u42", 0xe000, 0x1000, CRC(5f65d94b) SHA1(fe26b54dec14e1c4911d996c9ebd084a38dcb691) ) |
| 980 | ROM_LOAD("s80-8r0.u26", 0xc000, 0x1000, CRC(48d410d8) SHA1(750d984abc013a3344628300288f6d1ba140a95f) ) |
| 981 | ROM_LOAD("s80-8r0.u33", 0xd000, 0x1000, CRC(9765793e) SHA1(4951b127888c1f3153004cc9fb386099b408f52c) ) |
| 982 | ROM_LOAD("s80-8r0.u42", 0xe000, 0x1000, CRC(5f65d94b) SHA1(fe26b54dec14e1c4911d996c9ebd084a38dcb691) ) |
| 939 | 983 | |
| 940 | 984 | ROM_REGION(0x1000, REGION_GFX1, ROMREGION_DISPOSE) |
| 941 | | ROM_LOAD("super80d.u27", 0x0000, 0x0800, CRC(cb4c81e2) SHA1(8096f21c914fa76df5d23f74b1f7f83bd8645783) ) |
| 942 | | ROM_RELOAD( 0x0800, 0x0800 ) |
| 985 | ROM_LOAD("super80d.u27", 0x0000, 0x0800, CRC(cb4c81e2) SHA1(8096f21c914fa76df5d23f74b1f7f83bd8645783) ) |
| 986 | ROM_RELOAD( 0x0800, 0x0800 ) |
| 943 | 987 | |
| 944 | 988 | ROM_REGION(0x1000, REGION_GFX2, ROMREGION_DISPOSE) |
| 945 | | ROM_LOAD("super80e.u27", 0x0000, 0x1000, CRC(ebe763a7) SHA1(ffaa6d6a2c5dacc5a6651514e6707175a32e83e8) ) |
| 989 | ROM_LOAD("super80e.u27", 0x0000, 0x1000, CRC(ebe763a7) SHA1(ffaa6d6a2c5dacc5a6651514e6707175a32e83e8) ) |
| 946 | 990 | ROM_END |
| 947 | 991 | |
| 992 | ROM_START( super80r ) |
| 993 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) |
| 994 | ROM_SYSTEM_BIOS(0, "super80r", "MCE (original)") |
| 995 | ROMX_LOAD("super80r.u26", 0xc000, 0x1000, CRC(01bb6406) SHA1(8e275ecf5141b93f86e45ff8a735b965ea3e8d44), ROM_BIOS(1)) |
| 996 | ROM_SYSTEM_BIOS(1, "super80s", "MCE (upgraded)") |
| 997 | ROMX_LOAD("super80s.u26", 0xc000, 0x1000, CRC(3e29d307) SHA1(b3f4667633e0a4eb8577e39b5bd22e1f0bfbc0a9), ROM_BIOS(2)) |
| 998 | |
| 999 | ROM_LOAD("super80.u33", 0xd000, 0x1000, CRC(cf8020a8) SHA1(2179a61f80372cd49e122ad3364773451531ae85) ) |
| 1000 | ROM_LOAD("super80.u42", 0xe000, 0x1000, CRC(a1c6cb75) SHA1(d644ca3b399c1a8902f365c6095e0bbdcea6733b) ) |
| 1001 | ROM_LOAD("s80hmce.ic24", 0xf000, 0x0800, CRC(a6488a1e) SHA1(7ba613d70a37a6b738dcd80c2bb9988ff1f011ef) ) |
| 1002 | ROM_END |
| 1003 | |
| 948 | 1004 | ROM_START( super80v ) |
| 949 | 1005 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) |
| 950 | | ROM_LOAD("s80-v37v.u26", 0xc000, 0x1000, CRC(01e0c0dd) SHA1(ef66af9c44c651c65a21d5bda939ffa100078c08) ) |
| 951 | | ROM_LOAD("s80-v37.u33", 0xd000, 0x1000, CRC(812ad777) SHA1(04f355bea3470a7d9ea23bb2811f6af7d81dc400) ) |
| 952 | | ROM_LOAD("s80-v37.u42", 0xe000, 0x1000, CRC(e02e736e) SHA1(57b0264c805da99234ab5e8e028fca456851a4f9) ) |
| 953 | | ROM_LOAD("s80hmce.ic24", 0xf000, 0x0800, CRC(a6488a1e) SHA1(7ba613d70a37a6b738dcd80c2bb9988ff1f011ef) ) |
| 1006 | ROM_LOAD("s80-v37v.u26", 0xc000, 0x1000, CRC(01e0c0dd) SHA1(ef66af9c44c651c65a21d5bda939ffa100078c08) ) |
| 1007 | ROM_LOAD("s80-v37.u33", 0xd000, 0x1000, CRC(812ad777) SHA1(04f355bea3470a7d9ea23bb2811f6af7d81dc400) ) |
| 1008 | ROM_LOAD("s80-v37.u42", 0xe000, 0x1000, CRC(e02e736e) SHA1(57b0264c805da99234ab5e8e028fca456851a4f9) ) |
| 1009 | ROM_LOAD("s80hmce.ic24", 0xf000, 0x0800, CRC(a6488a1e) SHA1(7ba613d70a37a6b738dcd80c2bb9988ff1f011ef) ) |
| 954 | 1010 | ROM_END |
| 955 | 1011 | |
| 956 | 1012 | /**************************** DEVICES *****************************************************************/ |
| r2573 | r2574 | |
| 1014 | 1070 | COMP( 1981, super80d, super80, 0, super80d, super80, super80d, super80, "Dick Smith","Super-80 (V2.2)" , 0) |
| 1015 | 1071 | COMP( 1981, super80e, super80, 0, super80d, super80, super80, super80, "Dick Smith","Super-80 (El Graphix 4)" , 0) |
| 1016 | 1072 | COMP( 1981, super80m, super80, 0, super80m, super80m, super80d, super80, "Dick Smith","Super-80 (8R0)" , 0) |
| 1017 | | COMP( 1981, super80v, super80, 0, super80v, super80v, super80v, super80, "Dick Smith","Super-80 (with VDUEB)" , 0) |
| 1073 | COMP( 1981, super80r, super80, 0, super80r, super80r, super80v, super80, "Dick Smith","Super-80 (with VDUEB)" , 0) |
| 1074 | COMP( 1981, super80v, super80, 0, super80v, super80v, super80v, super80, "Dick Smith","Super-80 (with enhanced VDUEB)" , 0) |
| 1018 | 1075 | |