[uae] Re: Action Replay Broken - Some progress

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Tue, 10 Jul 2007 18:15:43 -0400

Hi Steven

On Tuesday 10 July 2007 03:14:36 Steven Saunders wrote:
> I went back and checked and the Action Replay stuff seems to have
> been working fine in 0.8.29-WIP3. Looking at what's changed between
> WIP3 and WIP4 I noticed that some of the code around interrupts in
> "newcpu.c" has been changed. In particular, the "do_interrupt(..)"
> method has been renamed to "service_interrupt(..)" and the following
> condition has been added such that service_interrupt(..) does nothing
> if the condition is not true:
>
>     if (level > regs->intmask) ...
>
> There are a number of places in the action replay (AR) code where a
> level 7 interrupt is triggered, but it appears that the condition
> above is always false whenever the AR code does this, so nothing
> happens.

I reworked the interrupt code because it was rather broken (symptoms, for 
example, were broken sound effects in IK+). I guess my 'fixes' broke the 
Action Replay stuff...


On Tuesday 10 July 2007 18:04:29 Toni Wilen wrote:
> >     if (level > regs->intmask) ...
>
> Level 7 interrupt is NMI (non maskable interrupt, always triggers when
> CPU interrupt level pins change to 7), so it should be something like:
>
> if (level > regs->intmask || level == 7)

Thanks, Toni. I'll add that.

Cheers,
Rich

Other related posts: