Previous 15994 Revisions Next

r8253 Wednesday 9th June, 2010 at 09:20:35 UTC by Fabio Priuli
[NES] fixed a couple of typos and commented out/removed some debug message
[src/mess/machine]nes.c nes_mmc.c nes_pcb.c

src/mess/machine/nes_pcb.c
r8252r8253
662662   nes_state *state = (nes_state *)space->machine->driver_data;
663663   LOG_MMC(("cnrom_w, offset: %04x, data: %02x\n", offset, data));
664664
665//   printf("%x\n", data);
665666   if (state->ce_mask)
666667   {
667668      chr8(space->machine, data & ~state->ce_mask, CHRROM);
668669
669      if ((data & state->ce_mask) != state->ce_state)
670      if ((data & state->ce_mask) == state->ce_state)
670671         state->chr_open_bus = 0;
671672      else
672673         state->chr_open_bus = 1;
src/mess/machine/nes.c
r8252r8253
131131         if (state->prg_ram)
132132            memory_configure_bank(machine, "bank5", state->prgram_bank5_start, state->wram_size / 0x2000, state->wram, 0x2000);
133133
134         printf("%d %d\n", state->battery_bank5_start, state->prgram_bank5_start);
135134         /* if we have any additional PRG RAM, point bank5 to its first bank */
136135         if (state->battery || state->prg_ram)
137136            state->prg_bank[4] = state->battery_bank5_start;
r8252r8253
10351034      if (image_get_software_region(image, "pin27") != NULL)
10361035      {
10371036         state->ce_mask |= 0x02;
1038         state->ce_state |= (image_get_software_region_length(image, "pin26") == 2) ? 0 : 0x02;
1037         state->ce_state |= (image_get_software_region_length(image, "pin27") == 2) ? 0 : 0x02;
10391038      }
10401039      state->chr_open_bus = 0;
1041      printf("Pin mask: %d state %d\n", state->ce_mask, state->ce_state);
1040
10421041#if 1
10431042      printf("PCB Feature: %s\n", image_get_feature(image));
10441043      printf("PRG chunks: %d\n", state->prg_chunks);
src/mess/machine/nes_mmc.c
r8252r8253
239239
240240   if (state->mmc_write_mid)
241241      (*state->mmc_write_mid)(space, offset, data);
242   else if (state->mid_ram_enable)
243   {
244      if (state->battery && !state->trainer)
245         state->battery_ram[offset] = data;
246      else
247         state->wram[(state->prg_bank[4] - state->prgram_bank5_start) * 0x2000 + offset] = data;
248   }
249//   else
250//      logerror("Unimplemented MID mapper write, offset: %04x, data: %02x\n", offset + 0x6000, data);
251242}
252243
253244// currently, this is not used (but it might become handy for some pirate mapper)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team