src/mess/drivers/mbee.c
| r2449 | r2450 | |
| 57 | 57 | #include "devices/cassette.h" |
| 58 | 58 | #include "devices/z80bin.h" |
| 59 | 59 | |
| 60 | | static SNAPSHOT_LOAD( mbee ); |
| 60 | static QUICKLOAD_LOAD( mbee ); |
| 61 | 61 | static Z80BIN_EXECUTE( mbee ); |
| 62 | 62 | |
| 63 | 63 | static size_t mbee_size; |
| r2449 | r2450 | |
| 312 | 312 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 313 | 313 | |
| 314 | 314 | /* devices */ |
| 315 | | MDRV_SNAPSHOT_ADD(mbee, "mwb", 0.5) |
| 315 | MDRV_QUICKLOAD_ADD(mbee, "mwb,com", 0.5) |
| 316 | 316 | MDRV_Z80BIN_QUICKLOAD_ADD(mbee, 0) |
| 317 | 317 | MACHINE_DRIVER_END |
| 318 | 318 | |
| r2449 | r2450 | |
| 349 | 349 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 350 | 350 | |
| 351 | 351 | /* devices */ |
| 352 | | MDRV_SNAPSHOT_ADD(mbee, "mwb,com", 0.5) |
| 352 | MDRV_QUICKLOAD_ADD(mbee, "mwb,com", 0.5) |
| 353 | 353 | MDRV_Z80BIN_QUICKLOAD_ADD(mbee, 0) |
| 354 | 354 | MACHINE_DRIVER_END |
| 355 | 355 | |
| r2449 | r2450 | |
| 462 | 462 | } |
| 463 | 463 | } |
| 464 | 464 | |
| 465 | | static SNAPSHOT_LOAD( mbee ) |
| 465 | static QUICKLOAD_LOAD( mbee ) |
| 466 | 466 | { |
| 467 | 467 | UINT16 i, j; |
| 468 | 468 | UINT8 data, sw = input_port_read(image->machine, "CONFIG") & 1; /* reading the dipswitch: 1 = autorun */ |
| 469 | 469 | |
| 470 | | /* mwb files - standard basic files */ |
| 471 | | |
| 472 | | if ((!(strcmp(image_filetype(image),"mwb"))) || (!(strcmp(image_filetype(image),"MWB")))) |
| 470 | if (!mame_stricmp(image_filetype(image), "mwb")) |
| 473 | 471 | { |
| 474 | | for (i = 0; i < snapshot_size; i++) |
| 472 | /* mwb files - standard basic files */ |
| 473 | for (i = 0; i < quickload_size; i++) |
| 475 | 474 | { |
| 476 | 475 | j = 0x8c0 + i; |
| 477 | 476 | |
| r2449 | r2450 | |
| 491 | 490 | else |
| 492 | 491 | program_write_word_16le(0xa2,0x8517); |
| 493 | 492 | } |
| 494 | | else |
| 495 | | |
| 496 | | /* com files - most com files are just machine-language games with a wrapper and don't need cp/m to be present */ |
| 497 | | |
| 498 | | if ((!(strcmp(image_filetype(image),"com"))) || (!(strcmp(image_filetype(image),"COM")))) |
| 493 | else if (!mame_stricmp(image_filetype(image), "com")) |
| 499 | 494 | { |
| 500 | | for (i = 0; i < snapshot_size; i++) |
| 495 | /* com files - most com files are just machine-language games with a wrapper and don't need cp/m to be present */ |
| 496 | for (i = 0; i < quickload_size; i++) |
| 501 | 497 | { |
| 502 | 498 | j = 0x100 + i; |
| 503 | 499 | |