View Single Post
Old 27 April 2019, 11:21   #164
ross
Per aspera ad astra

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 49
Posts: 2,425
Quote:
Originally Posted by NorthWay View Post
[lsl #8]
My personal preference is to start the program with "clr.l -(sp)" and match it before end with "move.l (sp)+,d0", and then use pairs of
move.b dX,(sp)
move.w (sp),dX

You just have to be careful not to use it in a nested routine so your sentence should be written "to start the subroutine with".


Quote:
Originally Posted by PeterJ View Post
i just tried with $ff56 and the result was $ff
As is should (i've simply written d0=$xx00 because low bits are anyway lost so can be anything).
But from your next phrase is it not that you meant the
asr
instruction?
Quote:
is it not only if you use movem.w that it clear or set the upper word depending of bit15?
Regardless,
movem
deals with words (or longs) and never with bytes.
ross is offline  
 
Page generated in 0.04138 seconds with 11 queries