View Single Post
Old 09 June 2018, 07:41   #18
MickGyver
Registered User
 
MickGyver's Avatar
 
Join Date: Oct 2008
Location: Finland
Posts: 643
Quote:
Originally Posted by idrougge View Post
I wonder if the difference between mine and MickGyver's asm-only functions is that mine always end with AsmExit.

I also wonder if it's a good idea to end a function with RTS.
That could be it, I will try to remove the unlk command and replace RTS with AsmExit.

EDIT: Removing UNLK a4 in the beginning of the routine and replacing RTS with AsmExit is working, at least in WinUAE (don't have access to my A1200 now). I applied the changes to the code in my post above.

Last edited by MickGyver; 09 June 2018 at 09:12. Reason: Tested the code change
MickGyver is offline  
 
Page generated in 0.04307 seconds with 11 queries