Norbi

Cx! How to add a value to a register.

4 posts in this topic

Hi,

I'm new in usig cx for make programs for a CP1l. I can add a value to a register using MOV command. (MOV #0050 D100) But how can I divide or increase this value. (50/2 or 50+8) Is there any option to make this in a new reg. ( D101). Or much better that the value of D100 divide a value in D101. (D100/D101) These are really easy things, but I can't find how!

Share this post


Link to post
Share on other sites

Go here:

U9gujgWWuNsAAAAASUVORK5CYII=

 

Look up the +, -, * and / instructions.....

 

1 person likes this

Share this post


Link to post
Share on other sites

Thanks a lot!

Why couldn't I find it?! 😃

Share this post


Link to post
Share on other sites

Norbi,

I would also recommend you download the programming manual.  There is additional information about instructions in the manual.

I have included a link to the manual below.

CP1 Programming Manual

Hope this will help.

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