Sign in to follow this  
Followers 0
dunc

'H' designation in instruction?

4 posts in this topic

found another instruction I cannot quite fathom out: [DMOV H1A03 K8M802] cant seem to find a definitive answer to the entire instruction, but from what I understand it is a double word move of the hex value 1A03 to M802 and the next 32 bits? am I along the right lines? If I am correct in what format does the hex value transfer to the bits? there is also another instruction: [DMOV H0 K8M566] does this essentially reset all bits from M566-M598 (32bits) by moving the value 0 into the bits in the instruction? thanks

Share this post


Link to post
Share on other sites
You are correct on both. Least significant bit goes to first address.

Share this post


Link to post
Share on other sites
good good, makes a change for me to understand it. never seen it used before, what is the advantage in using hex numbers rather than decimals in a data register or a K constant to set blocks of bits?

Share this post


Link to post
Share on other sites
No special reason except Hex is easier to read and convert to Bin. The same way around, Bin is easier to convert into Hex in comparison with Dec. Do what suits you.

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