hash/c64_cart.xml
| r11478 | r11479 | |
| 1 | 1 | <?xml version="1.0"?> |
| 2 | 2 | <!DOCTYPE softwarelist SYSTEM "softwarelist.dtd"> |
| 3 | | |
| 3 | <!-- |
| 4 | List of mostly undumped cartridges: |
| 5 | http://www.retroport.de/C64_C128_Hardware.html |
| 6 | --> |
| 4 | 7 | <softwarelist name="c64_cart" description="Commodore 64 Cartridge"> |
| 5 | 8 | <software name="vw64"> |
| 6 | 9 | <description>VizaWrite 64</description> |
| r11478 | r11479 | |
| 132 | 135 | </software> |
| 133 | 136 | |
| 134 | 137 | <software name="epyxfast" supported="no"> |
| 135 | | <description>FastLoad</description> |
| 138 | <description>Fast Load Cartridge</description> |
| 136 | 139 | <year>1984</year> |
| 137 | 140 | <publisher>Epyx</publisher> |
| 138 | 141 | <!-- |
| r11478 | r11479 | |
| 216 | 219 | </part> |
| 217 | 220 | </software> |
| 218 | 221 | |
| 219 | | <software name="easycalc" supported="no"> |
| 222 | <software name="easycalc"> |
| 220 | 223 | <description>Easy Calc Result</description> |
| 221 | 224 | <year>1985</year> |
| 222 | 225 | <publisher>Handic Software</publisher> |
| 223 | 226 | <!-- |
| 227 | |===========================| |
| 228 | |=| | |
| 229 | |=| ROM0 LS73 | |
| 230 | |=| | |
| 231 | |=| | |
| 232 | |=| | |
| 233 | |=| | |
| 234 | |=| ROM1 LS00 | |
| 235 | |=| | |
| 236 | |===========================| |
| 237 | |
| 238 | ROM0 - Hitachi HN61364P 8Kx8 EPROM "CR2001" |
| 239 | ROM1 - Hitachi HN613128P 16Kx8 EPROM "CR3001" |
| 224 | 240 | --> |
| 225 | 241 | <part name="cart" interface="c64_cart"> |
| 226 | 242 | <feature name="cart_type" value="easy_calc_result" /> |
| 227 | | <feature name="game" value="1" /> |
| 243 | <feature name="game" value="0" /> |
| 228 | 244 | <feature name="exrom" value="0" /> |
| 229 | 245 | |
| 230 | 246 | <dataarea name="roml" size="0x2000"> |
| 231 | | <rom name="calc_rom1.bin" size="0x2000" crc="f617bec4" sha1="c5ef2418cf9dba3e14f586d5d6997f271b521a24" offset="0x0000" /> |
| 247 | <rom name="cr2001" size="0x2000" crc="f617bec4" sha1="c5ef2418cf9dba3e14f586d5d6997f271b521a24" offset="0x0000" /> |
| 232 | 248 | </dataarea> |
| 233 | 249 | |
| 234 | 250 | <dataarea name="romh" size="0x4000"> |
| 235 | | <rom name="calc_rom2.bin" size="0x4000" crc="4997dd31" sha1="9820b1e6b90d72f095a2b74438dac3cfc33e80b8" offset="0x0000" /> |
| 251 | <rom name="cr3001" size="0x4000" crc="4997dd31" sha1="9820b1e6b90d72f095a2b74438dac3cfc33e80b8" offset="0x0000" /> |
| 236 | 252 | </dataarea> |
| 237 | 253 | </part> |
| 238 | 254 | </software> |
| r11478 | r11479 | |
| 407 | 423 | </part> |
| 408 | 424 | </software> |
| 409 | 425 | |
| 410 | | <software name="hugo" supported="no"> |
| 426 | <software name="hugo"> |
| 411 | 427 | <description>Skærmtrolden Hugo (Denmark)</description> |
| 412 | 428 | <year>1990</year> |
| 413 | 429 | <publisher>SilverRock Productions</publisher> |
src/mess/machine/c64.c
| r11478 | r11479 | |
| 1387 | 1387 | space->install_legacy_write_handler( 0xde00, 0xdeff, FUNC(hugo_bank_w) ); |
| 1388 | 1388 | } |
| 1389 | 1389 | |
| 1390 | static WRITE8_HANDLER( easy_calc_result_bank_w ) |
| 1391 | { |
| 1392 | c64_state *state = space->machine().driver_data<c64_state>(); |
| 1393 | |
| 1394 | UINT8 *cart = space->machine().region("user1")->base(); |
| 1395 | memcpy(state->m_romh, cart + 0x2000 + (!offset * 0x2000), 0x2000); |
| 1396 | } |
| 1397 | |
| 1398 | static void load_easy_calc_result_cartridge(device_image_interface &image) |
| 1399 | { |
| 1400 | c64_state *state = image.device().machine().driver_data<c64_state>(); |
| 1401 | |
| 1402 | UINT8 *roml = image.get_software_region("roml"); |
| 1403 | UINT8 *romh = image.get_software_region("romh"); |
| 1404 | UINT8 *cart = image.device().machine().region("user1")->base(); |
| 1405 | memcpy(cart, roml, 0x2000); |
| 1406 | memcpy(cart + 0x2000, romh, 0x4000); |
| 1407 | |
| 1408 | // map cartridge ROMs |
| 1409 | memcpy(state->m_roml, cart, 0x2000); |
| 1410 | memcpy(state->m_romh, cart + 0x2000, 0x2000); |
| 1411 | |
| 1412 | // install bankswitch handler |
| 1413 | address_space *space = image.device().machine().device( "maincpu")->memory().space( AS_PROGRAM ); |
| 1414 | space->install_legacy_write_handler( 0xde00, 0xde01, FUNC(easy_calc_result_bank_w) ); |
| 1415 | } |
| 1416 | |
| 1390 | 1417 | static void c64_software_list_cartridge_load(device_image_interface &image) |
| 1391 | 1418 | { |
| 1392 | 1419 | c64_state *state = image.device().machine().driver_data<c64_state>(); |
| r11478 | r11479 | |
| 1417 | 1444 | |
| 1418 | 1445 | if (!strcmp(cart_type, "hugo")) |
| 1419 | 1446 | load_hugo_cartridge(image); |
| 1447 | |
| 1448 | if (!strcmp(cart_type, "easy_calc_result")) |
| 1449 | load_easy_calc_result_cartridge(image); |
| 1420 | 1450 | } |
| 1421 | 1451 | } |
| 1422 | 1452 | |