Previous 15994 Revisions Next

r4949 Friday 5th June, 2009 at 23:39:47 UTC by Barry Rodewald
[FM7] Made sub-CPU busy flag active if halted.
[src/mess/drivers]fm7.c

src/mess/drivers/fm7.c
r4948r4949
263263{
264264   UINT8 ret = 0;
265265   
266   if(sub_busy != 0)
266   if(sub_busy != 0 || sub_halt != 0)
267267      ret |= 0x80;
268268     
269269   return ret;
r4948r4949
271271
272272WRITE8_HANDLER( fm7_subintf_w )
273273{
274   cputag_set_input_line(space->machine,"sub",INPUT_LINE_HALT,(data & 0x80) ? ASSERT_LINE : CLEAR_LINE);
275274   sub_halt = data & 0x80;
276   sub_busy = data & 0x80;
275   cputag_set_input_line(space->machine,"sub",INPUT_LINE_HALT,(data & 0x80) ? ASSERT_LINE : CLEAR_LINE);
277276   if(data & 0x40)
278277      cputag_set_input_line(space->machine,"sub",M6809_IRQ_LINE,ASSERT_LINE);
279278   //popmessage("Sub CPU Interface write: %02x\n",data);
r4948r4949
281280
282281READ8_HANDLER( fm7_sub_busyflag_r )
283282{
284   if(sub_halt == 0)  // Sub CPU is still busy when halted
283   if(sub_halt == 0)
285284      sub_busy = 0x00;
286285   return 0x00;
287286}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team