3 posts in this topic

Posted (edited)

i want to use indirect register, but why contact 100,IR0 is not ON, is it my program correct?

Capture.PNG

Edited by septian

Share this post


Link to post
Share on other sites
18 hours ago, septian said:

i want to use indirect register, but why contact 100,IR0 is not ON, is it my program correct?

 

No.

You need to do the following:

MOVR 100.0 IR0

MOV D0 DR0

 

XIC DR0,IR0 to use the bit in the offset (apologies for the AB reference :( )

 

Also, your code below the indirect function will undo what you are trying to do anyway.

 

 

 

 

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