Previous 199869 Revisions Next

r18087 Sunday 23rd September, 2012 at 10:01:55 UTC by Fabio Priuli
(MESS) nes.c: this will be of use too, for next steps. no whatsnew.
[src/mess/includes]nes.h
[src/mess/machine]nes_pcb.c

trunk/src/mess/machine/nes_pcb.c
r18086r18087
1310913109
1311013110 *************************************************************/
1311113111
13112int nes_pcb_reset( running_machine &machine )
13112int nes_state::nes_pcb_reset()
1311313113{
13114   nes_state *state = machine.driver_data<nes_state>();
1311513114   int err = 0;
13116   const nes_pcb_intf *intf = nes_pcb_intf_lookup(state->m_pcb_id);
13115   const nes_pcb_intf *intf = nes_pcb_intf_lookup(m_pcb_id);
1311713116
1311813117   if (intf == NULL)
1311913118      fatalerror("Missing PCB interface\n");
1312013119
1312113120   /* Set the mapper irq callback */
13122   state->m_ppu->set_scanline_callback(intf ? intf->mmc_scanline : NULL);
13123   state->m_ppu->set_hblank_callback(intf ? intf->mmc_hblank : NULL);
13121   m_ppu->set_scanline_callback(intf ? intf->mmc_scanline : NULL);
13122   m_ppu->set_hblank_callback(intf ? intf->mmc_hblank : NULL);
1312413123
13125   err = state->pcb_initialize(state->m_pcb_id);
13124   err = pcb_initialize(m_pcb_id);
1312613125
1312713126   return err;
1312813127}
trunk/src/mess/includes/nes.h
r18086r18087
6767   void init_nes_core();
6868   void pcb_handlers_setup();
6969   int pcb_initialize(int idx);
70   int nes_pcb_reset();
7071
7172   DECLARE_WRITE8_MEMBER(nes_chr_w);
7273   DECLARE_READ8_MEMBER(nes_chr_r);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team