Previous 15994 Revisions Next

r15499 Monday 25th June, 2012 at 11:23:43 UTC by Robbbert
homelab - remove unneeded code that caused an error in some compilers, and fix an unrelated bug.
[src/mess/drivers]homelab.c

src/mess/drivers/homelab.c
r15498r15499
621621   UINT8 ch;
622622   UINT16 quick_addr;
623623   UINT16 quick_length;
624   UINT16 quick_end;
624625   UINT8 *quick_data;
625626   char pgmname[256];
626   UINT16 args[3];
627   UINT16 args[2];
627628   int read_;
628629
629630   quick_length = image.length();
r15498r15499
654655
655656   while((ch = image.fgetc()))
656657   {
657      if (ch == EOF)
658      if (i >= (ARRAY_LENGTH(pgmname) - 1))
658659      {
659         image.seterror(IMAGE_ERROR_INVALIDIMAGE, "Unexpected EOF while getting file name");
660         image.message(" Unexpected EOF while getting file name");
660         image.seterror(IMAGE_ERROR_INVALIDIMAGE, "File name too long");
661         image.message(" File name too long");
661662         return IMAGE_INIT_FAIL;
662663      }
663664
664      if (ch != '\0')
665      {
666         if (i >= (ARRAY_LENGTH(pgmname) - 1))
667         {
668            image.seterror(IMAGE_ERROR_INVALIDIMAGE, "File name too long");
669            image.message(" File name too long");
670            return IMAGE_INIT_FAIL;
671         }
672
673         pgmname[i] = ch;   /* build program name */
674         i++;
675      }
665      pgmname[i] = ch;   /* build program name */
666      i++;
676667   }
677668
678669   pgmname[i] = '\0';   /* terminate string with a null */
r15498r15499
686677
687678   quick_addr = LITTLE_ENDIANIZE_INT16(args[0]);
688679   quick_length = LITTLE_ENDIANIZE_INT16(args[1]);
689   int quick_end = quick_addr+quick_length-1;
680   quick_end = quick_addr+quick_length-1;
690681
691682   if (quick_end > 0x7fff)
692683   {
r15498r15499
845836ROM_END
846837
847838ROM_START( brailab4 )
848   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
839   ROM_REGION( 0x18000, "maincpu", ROMREGION_ERASEFF )
849840   ROM_LOAD( "brl1.rom", 0x0000, 0x1000, CRC(02323403) SHA1(3a2e853e0a39e05a04a8db58e1a76de1eda579c9))
850841   ROM_LOAD( "brl2.rom", 0x1000, 0x1000, CRC(36173fbc) SHA1(1c01398e16a1cbe4103e1be769347ceae873e090))
851842   ROM_LOAD( "brl3.rom", 0x2000, 0x1000, CRC(d3cdd108) SHA1(1a24e6c5f9c370ff6cb25045cb9d95e664467eb5))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team