Previous 199869 Revisions Next

r18560 Tuesday 16th October, 2012 at 19:37:49 UTC by Wilbert Pol
(MESS) ngp.c: Added support for loading 32KB homebrew images. (nw)
[src/mess/drivers]ngp.c

trunk/src/mess/drivers/ngp.c
r18559r18560
655655   {
656656      filesize = image.length();
657657
658      if (filesize != 0x80000 && filesize != 0x100000 && filesize != 0x200000 && filesize != 0x400000)
658      if (filesize != 0x8000 && filesize != 0x80000 && filesize != 0x100000 && filesize != 0x200000 && filesize != 0x400000)
659659      {
660660         image.seterror(IMAGE_ERROR_UNSPECIFIED, "Incorrect or not support cartridge size");
661661         return IMAGE_INIT_FAIL;
r18559r18560
678678   state->m_flash_chip[0].manufacturer_id = 0x98;
679679   switch( filesize )
680680   {
681   case 0x8000:
681682   case 0x80000:
682683      state->m_flash_chip[0].device_id = 0xab;
683684      break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team