Sign in to follow this  
Followers 0
skyfox

NXIP - Clear Range of memory that are not part of an array?

4 posts in this topic

Data memory registers %D300   to %D399 which are not part of an array - How do I clear the contents of these registers without having to clear each one individually? Is there an instruction that can clear this or a similar range?

Thanks

 

Share this post


Link to post
Share on other sites

Why not make it an array address? You can still have the other tags point to individual %d300-99 addresses

 

Share this post


Link to post
Share on other sites
2 hours ago, chelton said:

Why not make it an array address? You can still have the other tags point to individual %d300-99 addresses

 

Thanks. I was wondering if there was a function to do this by providing a starting address and then #of contiguous addresses to clear. Doing it this way by declaring an array, does it increase the memory consumption or does the declaration act as a pointer?

Share this post


Link to post
Share on other sites

When using AT to point at %d address it is essentially just a pointer.

 

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