I haven't seen any cases where code will modify other code within the same page or execution block. I have seen cases where code will replace a function with another function at the same address.Exophase said:I have no idea how many old x86 games use self modifying code, but its usage has certainly lowered since the advent of modern cached, pipelined platforms. Ari64 already mentioned that he hasn't seen it legitimately used on the N64.
Only if you think you can rewrite these sections better than the recompiler. In that case, the compiler could be improved.Exophase said:Ari64 said:HLE is only used for the RSP/RCP. Every MIPS instruction is executed.
Given the small amount of 64bit code used by games (and I hear that a lot of it is library code) it could offer a substantial speedup if you're capable to HLE out these sections then recompile the rest of the code as strictly 32bit.
Last edited by a moderator: