Andrei Blagaila

Registers like D4000Z7

4 posts in this topic

Can someone help me understand what D4000Z7 means? Is it a register? Is it a word? 

Share this post


Link to post
Share on other sites

This is a index register, The Z register indexes the D word .

 

Sem título.png

Edited by AlexMota

Share this post


Link to post
Share on other sites

Thank you so much. Now I understand. And why does it get used. I don't see the use for this. Can you give me an example why it's recommended to be used?

Share this post


Link to post
Share on other sites

It's called indirect addressing.  And it is commonly used in things like looping FOR/NEXT statements to change the referenced memory address each increment of the loop.

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