a2audit icon indicating copy to clipboard operation
a2audit copied to clipboard

Add 'Reset MMU' test for //e's

Open tomcw opened this issue 2 years ago • 1 comments

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.

tomcw avatar Apr 23 '22 17:04 tomcw

Oh dear. This is where I gain my infamy among long-suffering Apple II emulator writers.

xotmatrix avatar Apr 24 '22 06:04 xotmatrix