a2audit
a2audit copied to clipboard
Add 'Reset MMU' test for //e's
On Slack, #coding, @xotmatrix said (11th April):
If you put your JMP ($FFFC) in the stack page it will reset the Apple //e MMU, just like it would if you pressed Reset. Bit of a weird quirk with it; because the MMU doesn't have Reset pin, instead it looks for three accesses to $01xx and then $FFFC on address bus to know when a Reset happened.
This subroutine will reset the MMU by itself when it's in the stack page.
100: 2C FC FF ; BIT $FFFC
103: 60 ; RTS
No emulators appear to support it (AppleWin, MAME, microM8). Also from Slack, it's just a //e thing, so not supported on //c or IIgs.
Oh dear. This is where I gain my infamy among long-suffering Apple II emulator writers.