Get the latest tech news
Tweaking Stunt Island's 30-year-old 3D engine
Annali da Samarcanda Alberto Marnetto's Notebook Note: the patch is available at the end of the article (HERE). This post is about its making-of.
However, credit is due to the authors: they put in nice features like a branch predictor that shows whether a jump instruction will be taken, and in which direction (back or forward), assuming that the current status of registries and memory stays the same. I ensure that the decompilation is right by setting a breakpoint at the start of the fragment ( BP CS:76E8), and for added safety I verify that the program counter ( EIP) really points to the locations shown in the listing. The easiest way to find the relevant location is to search for the instructions that follow the MUL(so the ADD / CMP / JG sequence): they only refer to register values, so their encoding ( 03 D3 3B CA 7F 1B) is the same in all the files to patch.
Or read this on Hacker News