View Single Post
Old 20 May 2014, 11:37   #16
move.l #$c0ff33,throat

StingRay's Avatar
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,238
Originally Posted by phx View Post
The "lea mt_var,a4" is not part of any function there.
I know, saw it after I added the line of code there and didn't bother to remove it. As it is it's pretty much useless of course!

Originally Posted by phx View Post
Also _LinkerDB has to be removed. The interrupts were still using it to initialize the small data base.
I missed the _LinkerDB in the interrupts, thanks for the hint.

I have adapted the source a bit more (all branches have distance specifiers now (.b wherever possible), above mentioned problems fixed, mt_mastervol optimised etc.) and also tested the replayer, it works fine for me!

I have added 2 options as well:

MT_NOBSS, this can be set to 0 or <0>, if it's not set to zero the BSS section for the variables will be removed, useful if one needs pc-relative code (the replayer isn't 100% pc-relative yet though)

MT_INITA4: if this is set to anything else than 0 all routines which require a4 to be initialised will contain an additional "lea mt_var,a4" line

Updated and working version of the source attached to this post, example how to call the replayer added too (check beginning of the source).

Originally Posted by phx View Post
Indeed, I missed that. Very good. I take it!
Attached Files
File Type: s ptplayer_sting_OK.s (64.6 KB, 170 views)
StingRay is offline  
Page generated in 0.04528 seconds with 12 queries