Added a work-around for 2 Minute Drill,to get it booting again. [Angelo Salese]

==============

irq 5 code is this one:

04425A: 007C 0500                  ori     #$500, SR
04425E: 0279 FFEF 0060 000C        andi.w  #$ffef, $60000c.l
044266: 0079 0010 0060 000C        ori.w   #$10, $60000c.l
04426E: 48E7 0080                  movem.l A0, -(A7)
044272: 206D 1C18                  movea.l ($1c18,A5), A0
044276: 30F9 0070 0002             move.w  $700002.l, (A0)+
04427C: 2B48 1C18                  move.l  A0, ($1c18,A5)
044280: 4CDF 0100                  movem.l (A7)+, A0
044284: 4E73                       rte

60000c is an unknown port,but 700002 is for arm power sensor. So I'm guessing that's not related at all with the ym sound chip.
I'll check this again at some point...
This commit is contained in:
Angelo Salese 2009-01-02 01:42:23 +00:00
parent b931a734df
commit fc90b8fd1d

View File

@ -392,9 +392,10 @@ static INTERRUPT_GEN( drill_interrupt )
cpu_set_input_line(device, 4, HOLD_LINE); cpu_set_input_line(device, 4, HOLD_LINE);
} }
/* WRONG,it does something with 60000c & 700002,likely to be called when the player throws the ball.*/
static void irqhandler(running_machine *machine, int irq) static void irqhandler(running_machine *machine, int irq)
{ {
cpu_set_input_line(machine->cpu[0],5,irq ? ASSERT_LINE : CLEAR_LINE); // cpu_set_input_line(machine->cpu[0],5,irq ? ASSERT_LINE : CLEAR_LINE);
} }
static const ym2610_interface ym2610_config = static const ym2610_interface ym2610_config =