Sign in to follow this  
Followers 0
Guest Guest

STORING AND DEDUCTIND 2

6 posts in this topic

THANKS FOR THE LAST SOLUTION BUT HOW CAN IN PUT C200 VALUE IN TO A DATA REGISTER. HAVE TRIED [MOV C200 D1] TAKE IT IM LOOK IN THE WRONG PLACE

Share this post


Link to post
Share on other sites
I think if MOV won't work, ADD or SUB might... try ADD C200 K0 D1 and see if it allows that.

Share this post


Link to post
Share on other sites
High Speed counters are 32 bit. Try using DMOV. Should do the trick for you.

Share this post


Link to post
Share on other sites
I should warn you as well, that DMOV will use 2 locations as the destination because a location such as D1 is only 16 bits wide. So if you use [DMOV C200 D1] you will be moving the 32-bit value of the counter to D1 and D2. Make sure you are not using D2 for something else because it will get overwritten by the DMOV command. The low 16 bits will be stored in D1 and the high 16 bits will be in D2. If your counter's value is between -32768 and 32,767 (inclusive) then D2 will contain a zero.

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