[hatari-devel] Union demo abort with new EmuTOS?

Thomas Huth th.huth at gmx.de
Fri Nov 11 00:09:48 CET 2011


Am Thu, 10 Nov 2011 23:20:50 +0200
schrieb Eero Tamminen <oak at helsinkinet.fi>:

> > > Hatari can avoid the abort by checking that VDI_OldPC is valid
> > > (see attached patch), but how I can make it to raise illegal
> > > instruction exception if it isn't?
> > 
> > I'd rather suggest to chech m68k_getpc() being within the cartridge
> > memory region when OpCode_VDI has been called.
> 
> Any particular reason why it should be done like that?   IMHO checking
> VDI_OldPC is cleaner, as that must anyway be valid when this is
> called.

Well, VDI_OldPC does not seem to get cleared during reset yet. So when
you first run with VDI mode enabled, then disable it, your test will
fail.

Of course that could also be fixed easily, in that case your test
should be working fine, too.

 Thomas



More information about the hatari-devel mailing list