src/mess/drivers/atari.c
| r4764 | r4765 | |
| 10 | 10 | Added skeleton support for other XL/XE machines (VERY preliminary): |
| 11 | 11 | - a600xl based on maxaflex emulation in MAME |
| 12 | 12 | - a1200xl sharing a800xl code without BASIC |
| 13 | | - a65xe, a130xe, a800xe, xegs sharing a800xl code (and this is wrong at least |
| 14 | | for xegs) |
| 15 | | - a65xea as placeholder (I think it needs a different memory map, among other |
| 16 | | things) |
| 13 | - a65xe, a65xea, a130xe, a800xe, xegs sharing a800xl code (and this is wrong |
| 14 | at least for xegs) |
| 15 | Added proper dumps and labels, thanks to Freddy Offenga researches (a few |
| 16 | are still marked BAD_DUMP while waiting for crc confirmation, since they |
| 17 | have been obtained by splitting whole dumps) |
| 17 | 18 | |
| 18 | 19 | To Do: |
| 19 | | - Find out exact checksums for OS Roms split as in the original machines |
| 20 | 20 | - Find out why a600xl and a800xl don't work (xe machines should then follow) |
| 21 | 21 | - Investigate supported RAM sizes and OS versions in different models |
| 22 | 22 | - Implement differences between various models (currently most of the |
| 23 | 23 | XL/XE are exactly an a800xl, but this will change as soon as emulation |
| 24 | 24 | starts to work) |
| 25 | | - Investigate 65 XE Arabic dump: is it correct? |
| 26 | 25 | - Fix various keyboard differences |
| 27 | 26 | - Freddy emulation for 800XLF? |
| 28 | 27 | - Add support for proto boards and expansions (a1400xl, C/PM board, etc.) |
| r4764 | r4765 | |
| 326 | 325 | static INPUT_PORTS_START( atari_artifacting ) |
| 327 | 326 | PORT_START("artifacts") |
| 328 | 327 | PORT_CONFNAME(0x40, 0x00, "Television Artifacts" ) |
| 329 | | PORT_CONFSETTING(0x00, DEF_STR( Off )) |
| 330 | | PORT_CONFSETTING(0x40, DEF_STR( On )) |
| 328 | PORT_CONFSETTING(0x00, DEF_STR( Off ) ) |
| 329 | PORT_CONFSETTING(0x40, DEF_STR( On ) ) |
| 331 | 330 | INPUT_PORTS_END |
| 332 | 331 | |
| 333 | 332 | |
| r4764 | r4765 | |
| 1072 | 1071 | MDRV_IMPORT_FROM( atari_common ) |
| 1073 | 1072 | |
| 1074 | 1073 | MDRV_CPU_MODIFY( "maincpu" ) |
| 1075 | | MDRV_CPU_PROGRAM_MAP(a600xl_mem) |
| 1074 | MDRV_CPU_PROGRAM_MAP(a600xl_mem) // FIXME? |
| 1076 | 1075 | MDRV_CPU_VBLANK_INT_HACK(a800xl_interrupt, TOTAL_LINES_60HZ) |
| 1077 | 1076 | |
| 1078 | 1077 | MDRV_PIA6821_MODIFY( "pia", a600xl_pia_interface ) |
| r4764 | r4765 | |
| 1141 | 1140 | **************************************************************/ |
| 1142 | 1141 | |
| 1143 | 1142 | ROM_START(a400) |
| 1144 | | ROM_REGION(0x14000,"maincpu",0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1143 | ROM_REGION(0x14000, "maincpu", 0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1144 | ROM_LOAD( "co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2) ) |
| 1145 | 1145 | ROM_SYSTEM_BIOS(0, "default", "OS Rev. B") |
| 1146 | | ROMX_LOAD("co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2), ROM_BIOS(1)) |
| 1147 | | ROMX_LOAD("os_revb.rom", 0xe000, 0x2000, BAD_DUMP CRC(fbe3ce4c) SHA1(44d9ff3279a97557ade60255366f7b6a563242c9), ROM_BIOS(1)) // It should be split in two |
| 1146 | ROMX_LOAD( "co12499b.rom", 0xe000, 0x1000, BAD_DUMP CRC(d818f3e8) SHA1(bcdec2188f6a6a5bfc1df4e383bd828d34b5c4ac), ROM_BIOS(1) ) // CRC and label waiting for confirmation |
| 1147 | ROMX_LOAD( "co14599b.rom", 0xf000, 0x1000, BAD_DUMP CRC(c1690a9b) SHA1(c5248e8565574fd39ae1c3f4f356aa4cac07df95), ROM_BIOS(1) ) // CRC and label waiting for confirmation |
| 1148 | 1148 | ROM_SYSTEM_BIOS(1, "reva", "OS Rev. A") |
| 1149 | | ROMX_LOAD("co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2), ROM_BIOS(2)) |
| 1150 | | ROMX_LOAD("os_reva.rom", 0xe000, 0x2000, BAD_DUMP CRC(34d6a353) SHA1(db010853dc4039bf91e3446903f14e1a802fe933), ROM_BIOS(2)) // It should be split in two |
| 1149 | ROMX_LOAD( "co12499a.rom", 0xe000, 0x1000, BAD_DUMP CRC(29f64e17) SHA1(abf7ec488c6b600f1b7f30bdc7f8a2bf6a727675), ROM_BIOS(2) ) // CRC and label waiting for confirmation |
| 1150 | ROMX_LOAD( "co14599a.rom", 0xf000, 0x1000, BAD_DUMP CRC(bc533f0c) SHA1(e217148495fa747fe5488132d8d22533e68c7e58), ROM_BIOS(2) ) // CRC and label waiting for confirmation |
| 1151 | 1151 | ROM_END |
| 1152 | 1152 | |
| 1153 | 1153 | ROM_START(a400pal) |
| 1154 | | ROM_REGION(0x14000,"maincpu",0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1155 | | ROM_LOAD("co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2)) |
| 1156 | | ROM_LOAD("os_revap.rom", 0xe000, 0x2000, BAD_DUMP CRC(87d6e685) SHA1(4abbde82ec4077cfbd8d7e7b835107414f366862)) // Rev. A - It should be split in two |
| 1154 | ROM_REGION(0x14000, "maincpu", 0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1155 | ROM_LOAD( "co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2) ) |
| 1156 | ROM_LOAD( "co15199.rom", 0xe000, 0x1000, BAD_DUMP CRC(8e547f56) SHA1(1bd746ea798b723bfb18495a7facca113183d713) ) // Rev. A - CRC and label waiting for confirmation |
| 1157 | ROM_LOAD( "co15299.rom", 0xf000, 0x1000, BAD_DUMP CRC(be55b413) SHA1(d88afae49b08e75943d0258cb580e5d34756414a) ) // Rev. A - CRC and label waiting for confirmation |
| 1157 | 1158 | ROM_END |
| 1158 | 1159 | |
| 1159 | 1160 | ROM_START(a800) |
| 1160 | | ROM_REGION(0x14000,"maincpu",0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1161 | ROM_REGION(0x14000, "maincpu", 0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1162 | ROM_LOAD( "co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2) ) |
| 1161 | 1163 | ROM_SYSTEM_BIOS(0, "default", "OS Rev. B") |
| 1162 | | ROMX_LOAD("co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2), ROM_BIOS(1)) |
| 1163 | | ROMX_LOAD("os_revb.rom", 0xe000, 0x2000, BAD_DUMP CRC(fbe3ce4c) SHA1(44d9ff3279a97557ade60255366f7b6a563242c9), ROM_BIOS(1)) // It should be split in two |
| 1164 | ROMX_LOAD( "co12499b.rom", 0xe000, 0x1000, BAD_DUMP CRC(d818f3e8) SHA1(bcdec2188f6a6a5bfc1df4e383bd828d34b5c4ac), ROM_BIOS(1) ) // CRC and label waiting for confirmation |
| 1165 | ROMX_LOAD( "co14599b.rom", 0xf000, 0x1000, BAD_DUMP CRC(c1690a9b) SHA1(c5248e8565574fd39ae1c3f4f356aa4cac07df95), ROM_BIOS(1) ) // CRC and label waiting for confirmation |
| 1164 | 1166 | ROM_SYSTEM_BIOS(1, "reva", "OS Rev. A") |
| 1165 | | ROMX_LOAD("co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2), ROM_BIOS(2)) |
| 1166 | | ROMX_LOAD("os_reva.rom", 0xe000, 0x2000, BAD_DUMP CRC(34d6a353) SHA1(db010853dc4039bf91e3446903f14e1a802fe933), ROM_BIOS(2)) // It should be split in two |
| 1167 | ROMX_LOAD( "co12499a.rom", 0xe000, 0x1000, BAD_DUMP CRC(29f64e17) SHA1(abf7ec488c6b600f1b7f30bdc7f8a2bf6a727675), ROM_BIOS(2) ) // CRC and label waiting for confirmation |
| 1168 | ROMX_LOAD( "co14599a.rom", 0xf000, 0x1000, BAD_DUMP CRC(bc533f0c) SHA1(e217148495fa747fe5488132d8d22533e68c7e58), ROM_BIOS(2) ) // CRC and label waiting for confirmation |
| 1167 | 1169 | ROM_END |
| 1168 | 1170 | |
| 1169 | 1171 | ROM_START(a800pal) |
| 1170 | | ROM_REGION(0x14000,"maincpu",0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1171 | | ROM_LOAD("co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2)) |
| 1172 | | ROM_LOAD("os_revap.rom", 0xe000, 0x2000, BAD_DUMP CRC(87d6e685) SHA1(4abbde82ec4077cfbd8d7e7b835107414f366862)) // Rev. A - It should be split in two |
| 1172 | ROM_REGION(0x14000, "maincpu", 0) /* 64K for the CPU + 2 * 8K for cartridges */ |
| 1173 | ROM_LOAD( "co12399b.rom", 0xd800, 0x0800, CRC(6a5d766e) SHA1(01a6044f7a81d409c938e7dfde0a1af5832229d2) ) |
| 1174 | ROM_LOAD( "co15199.rom", 0xe000, 0x1000, BAD_DUMP CRC(8e547f56) SHA1(1bd746ea798b723bfb18495a7facca113183d713) ) // Rev. A - CRC and label waiting for confirmation |
| 1175 | ROM_LOAD( "co15299.rom", 0xf000, 0x1000, BAD_DUMP CRC(be55b413) SHA1(d88afae49b08e75943d0258cb580e5d34756414a) ) // Rev. A - CRC and label waiting for confirmation |
| 1173 | 1176 | ROM_END |
| 1174 | 1177 | |
| 1175 | 1178 | ROM_START(a1200xl) |
| 1176 | | ROM_REGION(0x18000,"maincpu",0) |
| 1179 | ROM_REGION(0x18000, "maincpu", 0) |
| 1177 | 1180 | ROM_SYSTEM_BIOS(0, "default", "OS Rev. 11") |
| 1178 | | ROMX_LOAD("co60616b.rom", 0x14000, 0x4000, BAD_DUMP CRC(1a1d7b1b) SHA1(5833e3a51d3a966a42baea37c40c01186e8a89cc), ROM_BIOS(1)) // It should be split in two |
| 1181 | ROMX_LOAD( "co60616b.rom", 0x14000, 0x2000, BAD_DUMP CRC(6e29ec8d) SHA1(3f9c06d6b4d261f3d5bf4354e3cff0c17b9347b9), ROM_BIOS(1) ) // CRC and label waiting for confirmation |
| 1182 | ROMX_LOAD( "co60617b.rom", 0x16000, 0x2000, BAD_DUMP CRC(d73ce29a) SHA1(64790242d902643fe0c40dd842749f1fe461831b), ROM_BIOS(1) ) // CRC and label waiting for confirmation |
| 1179 | 1183 | ROM_SYSTEM_BIOS(1, "rev10", "OS Rev. 10") |
| 1180 | | ROMX_LOAD("co60616a.rom", 0x14000, 0x4000, BAD_DUMP CRC(c5c11546) SHA1(83c9afee8828a4026c55f10f920c42f76ad9ff65), ROM_BIOS(2)) // It should be split in two |
| 1184 | ROMX_LOAD( "co60616a.rom", 0x14000, 0x2000, BAD_DUMP CRC(0391386b) SHA1(7c176657c88b89b8a69bf021fa8e0939efc0dff2), ROM_BIOS(2) ) // CRC and label waiting for confirmation |
| 1185 | ROMX_LOAD( "co60617a.rom", 0x16000, 0x2000, BAD_DUMP CRC(b502f1e7) SHA1(6688db57d97fa570aef5c15cef3e5fb2688879c2), ROM_BIOS(2) ) // CRC and label waiting for confirmation |
| 1181 | 1186 | ROM_END |
| 1182 | 1187 | |
| 1183 | 1188 | ROM_START(a600xl) |
| 1184 | | ROM_REGION(0x10000,"maincpu",0) |
| 1185 | | ROM_LOAD("co60302a.rom", 0xa000, 0x2000, CRC(f0202fb3) SHA1(7ad88dd99ff4a6ee66f6d162074db6f8bef7a9b6)) // Rev. B |
| 1186 | | ROM_LOAD("co62024.rom", 0xc000, 0x4000, CRC(643bcc98) SHA1(881d030656b40bbe48f15a696b28f22c0b752ab0)) // Rev. 1 |
| 1189 | ROM_REGION(0x10000, "maincpu", 0) |
| 1190 | ROM_LOAD( "co60302a.rom", 0xa000, 0x2000, CRC(f0202fb3) SHA1(7ad88dd99ff4a6ee66f6d162074db6f8bef7a9b6) ) // Rev. B |
| 1191 | ROM_LOAD( "co62024.rom", 0xc000, 0x4000, CRC(643bcc98) SHA1(881d030656b40bbe48f15a696b28f22c0b752ab0) ) // Rev. 1 |
| 1187 | 1192 | ROM_END |
| 1188 | 1193 | |
| 1189 | 1194 | ROM_START(a800xl) |
| 1190 | | ROM_REGION(0x18000,"maincpu",0) |
| 1191 | | ROM_LOAD("co60302a.rom", 0x10000, 0x2000, CRC(f0202fb3) SHA1(7ad88dd99ff4a6ee66f6d162074db6f8bef7a9b6)) // Rev. B |
| 1192 | | ROM_LOAD("co61598b.rom", 0x14000, 0x4000, CRC(1f9cd270) SHA1(ae4f523ba08b6fd59f3cae515a2b2410bbd98f55)) // Rev. 2 |
| 1195 | ROM_REGION(0x18000, "maincpu", 0) |
| 1196 | ROM_LOAD( "co60302a.rom", 0x10000, 0x2000, CRC(f0202fb3) SHA1(7ad88dd99ff4a6ee66f6d162074db6f8bef7a9b6) ) // Rev. B |
| 1197 | ROM_LOAD( "co61598b.rom", 0x14000, 0x4000, CRC(1f9cd270) SHA1(ae4f523ba08b6fd59f3cae515a2b2410bbd98f55) ) // Rev. 2 |
| 1193 | 1198 | ROM_END |
| 1194 | 1199 | |
| 1195 | 1200 | ROM_START(a65xe) |
| 1196 | | ROM_REGION(0x18000,"maincpu",0) |
| 1197 | | ROM_LOAD("co24947a.rom", 0x10000, 0x2000, CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0)) // Rev. C |
| 1198 | | ROM_LOAD("co61598b.rom", 0x14000, 0x4000, CRC(1f9cd270) SHA1(ae4f523ba08b6fd59f3cae515a2b2410bbd98f55)) // Rev. 2 |
| 1201 | ROM_REGION(0x18000, "maincpu", 0) |
| 1202 | ROM_LOAD( "co24947a.rom", 0x10000, 0x2000, CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0) ) // Rev. C |
| 1203 | ROM_LOAD( "co61598b.rom", 0x14000, 0x4000, CRC(1f9cd270) SHA1(ae4f523ba08b6fd59f3cae515a2b2410bbd98f55) ) // Rev. 2 |
| 1199 | 1204 | ROM_END |
| 1200 | 1205 | |
| 1201 | 1206 | ROM_START(a65xea) |
| 1202 | | ROM_REGION(0x18000,"maincpu",0) |
| 1203 | | ROM_LOAD("basic_ar.rom", 0x10000, 0x2000, CRC(c899f4d6) SHA1(043df191d1fe402e792266a108e147ffcda35130)) |
| 1204 | | ROM_LOAD("c101700.rom", 0x14000, 0x4000, CRC(7f9a76c8) SHA1(57eb6d87850a763f11767f53d4eaede186f831a2)) // Rev. 3B ? |
| 1205 | | // According to Freddy Offenga's doc OS rom should have been CRC 0xf0a236d3. Is this an alt version? |
| 1207 | ROM_REGION(0x18000, "maincpu", 0) |
| 1208 | ROM_LOAD( "basic_ar.rom", 0x10000, 0x2000, CRC(c899f4d6) SHA1(043df191d1fe402e792266a108e147ffcda35130) ) // is this correct? or shall we use Rev. C? |
| 1209 | // ROM_LOAD( "c101700.rom", 0x14000, 0x4000, CRC(7f9a76c8) SHA1(57eb6d87850a763f11767f53d4eaede186f831a2) ) // this was from Savetz and has wrong bits! |
| 1210 | ROM_LOAD( "c101700.rom", 0x14000, 0x4000, CRC(45f47988) SHA1(a36b8b20f657580f172749bb0625c08706ed824c) ) // Rev. 3B ? |
| 1206 | 1211 | ROM_END |
| 1207 | 1212 | |
| 1208 | 1213 | ROM_START(a130xe) |
| 1209 | | ROM_REGION(0x18000,"maincpu",0) |
| 1210 | | ROM_LOAD("co24947a.rom", 0x10000, 0x2000, CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0)) // Rev. C |
| 1211 | | ROM_LOAD("co61598b.rom", 0x14000, 0x4000, CRC(1f9cd270) SHA1(ae4f523ba08b6fd59f3cae515a2b2410bbd98f55)) // Rev. 2 |
| 1214 | ROM_REGION(0x18000, "maincpu", 0) |
| 1215 | ROM_LOAD( "co24947a.rom", 0x10000, 0x2000, CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0) ) // Rev. C |
| 1216 | ROM_LOAD( "co61598b.rom", 0x14000, 0x4000, CRC(1f9cd270) SHA1(ae4f523ba08b6fd59f3cae515a2b2410bbd98f55) ) // Rev. 2 |
| 1212 | 1217 | ROM_END |
| 1213 | 1218 | |
| 1214 | 1219 | ROM_START(a800xe) |
| 1215 | | ROM_REGION(0x18000,"maincpu",0) |
| 1216 | | ROM_LOAD("co24947a.rom", 0x10000, 0x2000, CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0)) // Rev. C |
| 1217 | | ROM_LOAD("c300717.rom", 0x14000, 0x4000, CRC(29f133f7) SHA1(f03b9b93000ee84abb9cf8d6367241006f172182)) // Rev. 3 |
| 1220 | ROM_REGION(0x18000, "maincpu", 0) |
| 1221 | ROM_LOAD( "co24947a.rom", 0x10000, 0x2000, CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0) ) // Rev. C |
| 1222 | ROM_LOAD( "c300717.rom", 0x14000, 0x4000, CRC(29f133f7) SHA1(f03b9b93000ee84abb9cf8d6367241006f172182) ) // Rev. 3 |
| 1218 | 1223 | ROM_END |
| 1219 | 1224 | |
| 1220 | 1225 | ROM_START(xegs) |
| 1221 | | ROM_REGION(0x1a000,"maincpu",0) |
| 1222 | | /* These should be in a unique 32kb block! */ |
| 1223 | | ROM_LOAD("basic.rom", 0x10000, 0x2000, BAD_DUMP CRC(7d684184) SHA1(3693c9cb9bf3b41bae1150f7a8264992468fc8c0)) // Rev. C |
| 1224 | | ROM_LOAD("xegs.rom", 0x14000, 0x4000, BAD_DUMP CRC(1eaf4002) SHA1(decde89fbae90adb591ad2fc553d35f49030c129)) // Rev. 4 |
| 1225 | | ROM_LOAD("mcommand.rom", 0x18000, 0x2000, NO_DUMP) |
| 1226 | ROM_REGION(0x1a000, "maincpu", 0) |
| 1227 | ROM_LOAD( "c101687.rom", 0x10000, 0x8000, CRC(d50260d1) SHA1(0e0625ab2473f8431640df3ac8af61925760b9b9) ) // Rev. C + Rev. 4 + Missile Command |
| 1226 | 1228 | ROM_END |
| 1227 | 1229 | |
| 1228 | 1230 | |
| 1229 | 1231 | ROM_START(a5200) |
| 1230 | | ROM_REGION(0x14000,"maincpu",0) /* 64K for the CPU + 16K for cartridges */ |
| 1232 | ROM_REGION(0x14000, "maincpu", 0) /* 64K for the CPU + 16K for cartridges */ |
| 1231 | 1233 | ROM_SYSTEM_BIOS(0, "default", "a5200") |
| 1232 | | ROMX_LOAD("5200.rom", 0xf800, 0x0800, CRC(4248d3e3) SHA1(6ad7a1e8c9fad486fbec9498cb48bf5bc3adc530), ROM_BIOS(1)) |
| 1234 | ROMX_LOAD( "5200.rom", 0xf800, 0x0800, CRC(4248d3e3) SHA1(6ad7a1e8c9fad486fbec9498cb48bf5bc3adc530), ROM_BIOS(1) ) |
| 1233 | 1235 | ROM_SYSTEM_BIOS(1, "alt", "a5200 (alt)") |
| 1234 | | ROMX_LOAD("5200a.rom", 0xf800, 0x0800, CRC(c2ba2613) SHA1(1d2a3f00109d75d2d79fecb565775eb95b7d04d5), ROM_BIOS(2)) |
| 1236 | ROMX_LOAD( "5200a.rom", 0xf800, 0x0800, CRC(c2ba2613) SHA1(1d2a3f00109d75d2d79fecb565775eb95b7d04d5), ROM_BIOS(2) ) |
| 1235 | 1237 | ROM_END |
| 1236 | 1238 | |
| 1237 | 1239 | /************************************************************** |