Sign in to follow this  
Followers 0
BITS N BYTES

BYTE to WORD CONVERSION

3 posts in this topic

Need to write the LOW ORDER and HIGH order bytes of a value in a single DM memory word to 2 separate DM words. For example if D0000 = 0241 hex then write 0002h to D0001 and 0041h to D0002. Is there a single instruction that will do this, or must multiple instuctions be used?

Share this post


Link to post
Share on other sites
Hi. Yes . I Have two. MOVD (083) [ S,C,D] XFRB (062) [ C,S,D] Were, S= Word Source. C= Word Control and D= Word destination. Is not a single instruction, that will be run two, one for every mov of byt. Manu_Ref_MOVD___XFRB_CJ1M.pdf

Share this post


Link to post
Share on other sites
Thanks BENNDER! I missed these two useful instructions when I searched the instruction manual for the word "byte". They work just as I needed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0