src/mess/drivers/fm7.c
| r4948 | r4949 | |
| 263 | 263 | { |
| 264 | 264 | UINT8 ret = 0; |
| 265 | 265 | |
| 266 | | if(sub_busy != 0) |
| 266 | if(sub_busy != 0 || sub_halt != 0) |
| 267 | 267 | ret |= 0x80; |
| 268 | 268 | |
| 269 | 269 | return ret; |
| r4948 | r4949 | |
| 271 | 271 | |
| 272 | 272 | WRITE8_HANDLER( fm7_subintf_w ) |
| 273 | 273 | { |
| 274 | | cputag_set_input_line(space->machine,"sub",INPUT_LINE_HALT,(data & 0x80) ? ASSERT_LINE : CLEAR_LINE); |
| 275 | 274 | 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); |
| 277 | 276 | if(data & 0x40) |
| 278 | 277 | cputag_set_input_line(space->machine,"sub",M6809_IRQ_LINE,ASSERT_LINE); |
| 279 | 278 | //popmessage("Sub CPU Interface write: %02x\n",data); |
| r4948 | r4949 | |
| 281 | 280 | |
| 282 | 281 | READ8_HANDLER( fm7_sub_busyflag_r ) |
| 283 | 282 | { |
| 284 | | if(sub_halt == 0) // Sub CPU is still busy when halted |
| 283 | if(sub_halt == 0) |
| 285 | 284 | sub_busy = 0x00; |
| 286 | 285 | return 0x00; |
| 287 | 286 | } |