Previous 15994 Revisions Next

r2450 Wednesday 23rd April, 2008 at 12:51:45 UTC by Nathan Woods
[MBEE] Readability, fixed bugs, and changed a snapshot to be a quickload
[src/mess/drivers]mbee.c

src/mess/drivers/mbee.c
r2449r2450
5757#include "devices/cassette.h"
5858#include "devices/z80bin.h"
5959
60static SNAPSHOT_LOAD( mbee );
60static QUICKLOAD_LOAD( mbee );
6161static Z80BIN_EXECUTE( mbee );
6262
6363static size_t mbee_size;
r2449r2450
312312   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
313313
314314   /* devices */
315   MDRV_SNAPSHOT_ADD(mbee, "mwb", 0.5)
315   MDRV_QUICKLOAD_ADD(mbee, "mwb,com", 0.5)
316316   MDRV_Z80BIN_QUICKLOAD_ADD(mbee, 0)
317317MACHINE_DRIVER_END
318318
r2449r2450
349349   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
350350
351351   /* devices */
352   MDRV_SNAPSHOT_ADD(mbee, "mwb,com", 0.5)
352   MDRV_QUICKLOAD_ADD(mbee, "mwb,com", 0.5)
353353   MDRV_Z80BIN_QUICKLOAD_ADD(mbee, 0)
354354MACHINE_DRIVER_END
355355
r2449r2450
462462   }
463463}
464464
465static SNAPSHOT_LOAD( mbee )
465static QUICKLOAD_LOAD( mbee )
466466{
467467   UINT16 i, j;
468468   UINT8 data, sw = input_port_read(image->machine, "CONFIG") & 1;   /* reading the dipswitch: 1 = autorun */
469469
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"))
473471   {
474      for (i = 0; i < snapshot_size; i++)
472      /* mwb files - standard basic files */
473      for (i = 0; i < quickload_size; i++)
475474      {
476475         j = 0x8c0 + i;
477476
r2449r2450
491490      else
492491         program_write_word_16le(0xa2,0x8517);
493492   }
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"))
499494   {
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++)
501497      {
502498         j = 0x100 + i;
503499

Previous 15994 Revisions Next


© 1998-2018 The MESS Team