Jump to content

STORING AND DEDUCTIND 2


Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...