Sign in to follow this  
Followers 0
Hanh

To use Comparison instruction and SR memory area- CPM2A

3 posts in this topic

Hi I got troubles with comparison instruction ( >=, CMP). I am using CPM2A, CX-programmer. I read the help but I did'nt master it clearly. Ex: the results will turn on bit in SR. Which SR ? I need some simple examples. Help me Thanks

Share this post


Link to post
Share on other sites
Hello Hanh, The bits can be addressed in two ways... By their symbol names P_GT, P_EQ, and P_LT (Greater Than, Equal, and Less Than) - these can be seen within the Global Symbol table. The corresponding addresses (also visible within the Global Symbol table) are - 255.05, 255.06, and 255.07. It is a little misleading, in as much as you do not prefix these addresses with SR! Hope this helps. Edited by anonymous

Share this post


Link to post
Share on other sites
Thanks a lot. It s clearer now!!

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