Locating and replacing 68020 code with 68000 code?

0
1

On Aminet there are the following:

http://aminet.net/package/util/misc/PatchFor020
http://aminet.net/package/util/boot/PatchMath020
http://aminet.net/package/util/misc/pf2

All these scan through binaries in search for 68000 code that can be optimized to 68020, and then patches the binary, replacing the 68000 code with 68020 code.

Anyone know of a tool that does the opposite?

A tool that scans through a binary, snooping for 020 code, and then replace them with 68000 clean code?

  • TenLeftFingers
    If the answer by Daedalus answers your question adequately, please mark it as ‘accepted’ by clicking the green button to the right.
  • You must to post comments
0
0

Going the opposite direction is made a lot more complicated by the added restrictions that the 68000 has over the 68020. For example, the 68000 can only read word-aligned addresses whereas the 68020 can read from any address alignment (though it would probably be quicker to have everything word-aligned). If the 68020 code used any sort of pointer arithmetic that resulted in a non-word-aligned address, the CPU will throw an exception and the software will crash, most likely taking the OS down with it.

So, other than using real-time code monitoring (very slow, almost like an emulator) while an application is running, I don’t think what you’re looking for can be done.

  • You must to post comments
0
0

Thanks, you confirmed my suspicion :)

It’s annoying to find the perfect little tool for a job, and then discover it doesn’t run on the 68000 setup, and sources are long gone.

  • You must to post comments
0
0

See http://aminet.net/package/util/misc/Run68017 on the Aminet to get some stuff to work.  Note: I haven’t tried this patch myself.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.