Previous 15994 Revisions Next

r4975 Tuesday 9th June, 2009 at 12:30:05 UTC by Barry Rodewald
[FM7] Made busy flag remain active after sub CPU is no longer halted.
[src/mess/drivers]fm7.c

src/mess/drivers/fm7.c
r4974r4975
273273   if(sub_busy != 0 || sub_halt != 0)
274274      ret |= 0x80;
275275     
276   ret |= 0x01; // EXTDET (not implemented yet)
277   
276278   return ret;
277279}
278280
279281WRITE8_HANDLER( fm7_subintf_w )
280282{
281283   sub_halt = data & 0x80;
284   if(data & 0x80)
285      sub_busy = data & 0x80;
286
282287   cputag_set_input_line(space->machine,"sub",INPUT_LINE_HALT,(data & 0x80) ? ASSERT_LINE : CLEAR_LINE);
283288   if(data & 0x40)
284289      cputag_set_input_line(space->machine,"sub",M6809_IRQ_LINE,ASSERT_LINE);
r4974r4975
584589
585590static READ8_HANDLER( fm7_psg_select_r )
586591{
587   logerror("PSG: select register read\n");
588592   return 0xff;
589593}
590594
r4974r4975
592596{
593597   fm7_psg_regsel = data & 0x03;
594598   fm7_update_psg(space->machine);
595   logerror("PSG: select register write 0x%02x\n",data);
596599}
597600
598601static READ8_HANDLER( fm7_psg_data_r )
599602{
600603   fm7_update_psg(space->machine);
601   logerror("PSG: data register read\n");
602604   return psg_data;
603605}
604606
r4974r4975
606608{
607609   psg_data = data;
608610   fm7_update_psg(space->machine);
609   logerror("PSG: data register write 0x%02x\n",data);
610611}
611612
612613// Shared RAM is only usable on the main CPU if the sub CPU is halted

Previous 15994 Revisions Next


© 1998-2018 The MESS Team