tonioni / WinUAE

WinUAE Amiga emulator
http://www.winuae.net/
527 stars 86 forks source link

Action Replay support not working when the CPU is in STOP state #302

Open piru opened 2 weeks ago

piru commented 2 weeks ago

The cartridge hotkey cannot be used to enter the Action Replay when the CPU is in STOP state.

To reproduce:

 move.l  4.w,a6
 jsr    -120(a6) ; Disable
 lea    .super(pc),a5
 jsr    -30(a6)  ; Supervisor
 jsr    -126(a6) ; Enable
 moveq  #0,d0
 rts
.super:
 stop   #$2000
 rte

Notably this works with real A500 system with AR3.

tonioni commented 2 weeks ago

STOP emulation changed a lot few versions ago (to have fully accurate timing and match 68000 microcode behavior) which broke NMI injection. Don't have any quick fixes yet.