Previous 15994 Revisions Next

r9984 Monday 10th January, 2011 at 16:38:39 UTC by Fabio Priuli
[NES] Fixing some quirks here and there (Thanks Firewave for reporting them)
[src/mess/machine]nes.c nes_mmc.c nes_pcb.c nes_unif.c

src/mess/machine/nes_pcb.c
r9983r9984
521521   { "UNL-KOF97",        UNL_KOF97 },
522522   { "UNL-T-230",        UNL_T230 },
523523   { "UNL-STUDYNGAME",   UNL_STUDYNGAME },   // mapper 39
524   { "UNL-OneBus",       UNSUPPORTED_BOARD },
524525//
525526   { "BTL-SMB2A",         BTL_SMB2A },
526527   { "BTL-MARIOBABY",     BTL_MARIOBABY },
src/mess/machine/nes.c
r9983r9984
905905         if (state->pcb_id == NAMCOT_163)
906906            state->mapper_ram = auto_alloc_array(image.device().machine, UINT8, 0x2000);
907907
908         if (state->pcb_id == FUKUTAKE_BOARD)
909            state->mapper_ram = auto_alloc_array(image.device().machine, UINT8, 2816);
910         
908911         /* Position past the header */
909912         image.fseek(16, SEEK_SET);
910913
r9983r9984
10861089
10871090                  read_length += (chunk_length + 8);
10881091               }
1092               else if ((magic2[0] == 'T') && (magic2[1] == 'V') && (magic2[2] == 'S') && (magic2[3] == 'C')) // is this the same as TVCI??
1093               {
1094                  logerror("[TVSC] chunk found. No support yet.\n");
1095                  image.fread(&buffer, 4);
1096                  chunk_length = buffer[0] | (buffer[1] << 8) | (buffer[2] << 16) | (buffer[3] << 24);
1097                 
1098                  read_length += (chunk_length + 8);
1099               }
10891100               else if ((magic2[0] == 'D') && (magic2[1] == 'I') && (magic2[2] == 'N') && (magic2[3] == 'F'))
10901101               {
10911102                  logerror("[DINF] chunk found. No support yet.\n");
r9983r9984
12101221               }
12111222               else
12121223               {
1213                  printf("Unsupported UNIF chunk. Please report the problem at MESS Board.\n");
1224                  logerror("Unsupported UNIF chunk or corrupted header. Please report the problem at MESS Board.\n");
12141225                  read_length = size;
12151226               }
12161227            }
r9983r9984
12231234            fatalerror("UNIF should have a [MAPR] chunk to work. Check if your image has been corrupted");
12241235         }
12251236
1237         if (!prg_start)
1238         {
1239            auto_free(image.device().machine, temp_prg);
1240            auto_free(image.device().machine, temp_chr);
1241            fatalerror("Unsupported UNIF chunk or corrupted header. Please report the problem at MESS Board.\n");
1242         }
1243         
12261244         /* Free the regions that were allocated by the ROM loader */
12271245         image.device().machine->region_free("maincpu");
12281246         image.device().machine->region_free("gfx1");
src/mess/machine/nes_unif.c
r9983r9984
109109   { "UNL-SHERO",                  0,    0, CHRRAM_8,  UNSUPPORTED_BOARD /*SACHEN_SHERO*/},
110110   { "UNL-TF1201",                 0,    0, CHRRAM_0,  UNSUPPORTED_BOARD /*UNL_TF1201*/},
111111   { "UNL-DRIPGAME",               0,    0, CHRRAM_0,  UNSUPPORTED_BOARD}, // [by Quietust - we need more info]}
112   { "UNL-OneBus",                 0,    0, CHRRAM_0,  UNSUPPORTED_BOARD},
112113   { "BTL-MARIO1-MALEE2",          0,    0, CHRRAM_0,  UNSUPPORTED_BOARD},   // mapper 55?
113114   { "BMC-FK23C",                  0,    0, CHRRAM_0,  BMC_FK23C},
114115   { "BMC-FK23CA",                 0,    0, CHRRAM_0,  BMC_FK23CA},
src/mess/machine/nes_mmc.c
r9983r9984
278278{
279279   nes_state *state = machine->driver_data<nes_state>();
280280
281   /* if there is only 16k PRG, return */
282   if (!(state->prg_chunks >> 1))
283      return;
284
281285   /* assumes that bank references a 32k chunk */
282286   bank &= ((state->prg_chunks >> 1) - 1);
283287

Previous 15994 Revisions Next


© 1998-2018 The MESS Team