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
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
|