usage of INDF????
JonJon
Posts: 20
Guys,
What is the meaning of 'INDF' as applied below:
··mov·INDF,W
Where W = value not location.· I find it as a reserved word but I cannot find a description.
Regards,
JJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think you’re a Big-Shot?
Try ordering someone else’s dog around.
·
Jon K. Zachary
Katy, TX
What is the meaning of 'INDF' as applied below:
··mov·INDF,W
Where W = value not location.· I find it as a reserved word but I cannot find a description.
Regards,
JJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think you’re a Big-Shot?
Try ordering someone else’s dog around.
·
Jon K. Zachary
Katy, TX
Comments
mov w,#$35
mov fsr,w
mov w,#$30
mov INDF,w
The result was excatly the same as it would have been using IND - the byte at $35 got the walue of #$30.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Why do·they call it a spacestation? There's hardly "space" for anything in there.
I think I'm getting it now.
mov INDF,w
will store the value of 'w' at the location in 'FSR' for the current bank....
correct???
Regards,
JJ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think you’re a Big-Shot?
Try ordering someone else’s dog around.
·
Jon K. Zachary
Katy, TX
Post Edited (Paul Baker) : 2/12/2005 5:16:05 AM GMT
IND and INDF are synonyms. Both mean "apply some operation" (like a MOV, DEC, ADD, etc.) to any of the SX file registers whose address is specified by the current contents of the FSR (the File Select Register). This is usually called INDicect addressing, or an INDirect File address.
As Paul mentioned, indirect addressing of the SX registers is a great method to access any SX register without beeing tied to the memory bank concept. I mostly use it for FIFOs (or circular) buffers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G