View Single Post
Old 19 May 2014, 10:06   #15

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,604
Originally Posted by StingRay View Post
I have added "mt_var" (i.e. NEAR a4 has been replaced with lea mt_var,a4) and changed all a4 references accordingly.
The "lea mt_var,a4" is not part of any function there. To make it really work you would either have to initialize a4 before doing any mt_#? function call, or add the "lea" at the beginning of each exported function.

Also _LinkerDB has to be removed. The interrupts were still using it to initialize the small data base.

Originally Posted by StingRay View Post
Saves one memory access and, much better, all the 65 pointers to the tables can be removed as well which means slightly shorter code, less RELOC32 data and less hassle to make the replayer 100% pc-relative.
Indeed, I missed that. Very good. I take it!

Last edited by TCD; 20 May 2014 at 13:21. Reason: Back-to-back posts merged
phx is offline  
Page generated in 0.04519 seconds with 11 queries