fuadwi

Instruction to move data to certain Data Area

3 posts in this topic

dear all, 
is there any instruction in CX-Programmer to save / move data on certain Data Area?
for example : I want to move FFFF data to Dy address. we can set y as address number. 
so, if y = 455, FFFF will be moved to D455.
if y = 9 , FFFF will be moved to D9, etc
 thanks
 

Share this post


Link to post
Share on other sites

@fuadwi You should use prefix  @ for binary at address to use it as indirect address.

Example

--| 0.00 |-----------[MOV &10 D0]

--| 0.01 |-----------[MOV &100 @D0]

D0 is used for indirect address. For example I move value 10 at D0

When use MOV with @D0 that means move value 100 to D10 that means if you adjust value in D0 then destination data has been changed.

Edited by Wasan

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