View Single Post
Old 27 April 2019, 01:35   #161
ross
Per aspera ad astra

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 49
Posts: 2,446
Quote:
Originally Posted by PeterJ View Post
and it uses a lot of lsr #8 and Lsl #8 so the about is just perfect
For
lsr #8
the trick is similar:

Code:
    d0.w=xx00
    moveq   #0,d1
    ....

    move.w  d0,-(sp)
    move.b  (sp)+,d1
    ....
    
    d1.w=00xx
In this case you can use stack (so no spare A register and mem) but you need a D register and you must never touch his upper bits.
ross is offline  
 
Page generated in 0.04701 seconds with 11 queries