On Aminet there are the following:
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?
- If the answer by Daedalus answers your question adequately, please mark it as ‘accepted’ by clicking the green button to the right.
- You must login to post comments
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.
Please login first to submit.