Re: [hatari-devel] Solved: Pure debugger, illegal opcodes, exceptions

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 10/10/2012 18:16, Eero Tamminen a écrit :
	- Eero

[1] In this case maybe STMemory_ReadLong() which is e.g. used
     by the gemdos HD emulation.



Hello

yes, it should be this way, get_long is "interpreted" and should only be used in emulation context not when you just want to peek a value to print it in some logs.

See my comment in mfp.c in 2008/04/20 :)

"In the TRACE call in 'MFP_Exception', replace 'get_long' by
'STMemory_ReadLong' because 'get_long' produced a bus error
if we were not already in supervisor mode when the mfp exception
occured. This could cause bus error when restoring snapshot
of a gemdos program for example if trace mode was activated."


Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/