Stefan Drissen wrote:
> Just curious, how do you detect the difference between code and data? 

I was just assuming that the ROM wouldn't be self-modifying, so following
the possible execution paths from boot would catch almost everything.  That
doesn't cover look-up tables of jump addresses, though spotting code
patterns of PUSH rr followed by RET and maybe JP (HL) would perhaps spot
possible problem areas.

That might be enough to recognise exception blocks in popular titles, much
like my SID player has exceptions for some SID register writes.  I've not
actually examined any ROMs to know how likely it is - Dr Beep can probably
give you a real answer!

Si

Reply via email to