Thank you Derrick for your attempt of explanation, where I have some words to comment.
I handle with an S07 CPU and respectively with an HC11.
So if I understand you in the correct way, then do I understand you explanation as:
ldaa state,x ; i.e. a = [[state] + ]
where the address, of the state-variable value, and the stored address in index-register x are
added, whom sum the memory/RAM addresses, where the stored value of the addressed memory
– by this sum – in the accu a stored will be.
Am I correct with mine explanation of this instruction?
What does in
state ds 1
ds in this instruction mean?
Thank you very much for your explanation
kind regards
Franz
Von: Derrick Klotz
Gesendet: Donnerstag, 05. September 2013 16:06
An: Raaber Franz
Betreff: Re: - Mine question is about the instruction: "ldaa state,x" like "staa state,x" I'm I correct with mine intention, that the index-register as temporary storage, to load and to store, "state" in/from accu a is?
<https://community.freescale.com/>
Mine question is about the instruction: "ldaa state,x" like "staa state,x" I'm I correct with mine intention, that the index-register as temporary storage, to load and to store, "state" in/from accu a is?
reply from Derrick Klotz<https://community.freescale.com/people/Derrick?et=watches.email.thread> in 8-bit Microcontrollers - View the full discussion<https://community.freescale.com/message/348570?et=watches.email.thread#348570>