View Single Post
Old 27 April 2019, 00:02   #158
PeterJ
Registered User
 
Join Date: Feb 2015
Location: Copehagen
Posts: 36
Arrow

sorry to wake up this old thread,
i use it from time to time, getting to old to remember, so i have to see these tips every time i start coding again.


Quote:
Originally Posted by frank_b View Post


Code:
       move.b  d0,-(sp)
       move.w (sp)+,d0  ; magic fast shift :)
i do get some garbage in the lower byte when using this.


one can also use this trick to scroll back(i don't know if its as fast.
Code:
	Moveq	#0,D0
	move.w	#$2200,-(SP)
	Move.b  (Sp)+,D0
End result in d0 is #$22
PeterJ is offline  
 
Page generated in 0.06013 seconds with 11 queries