Charles Linquis
- 8th February 2011, 03:41
I'm using 18F's and I'm trying to build a small array in ASM, and then read it back with an ASM routine.
I figured that if I defined the array in BANKA SYSTEM, I could probably get the first address of that array using the "GetAddress/CHK?RP" macro
After that, I could incf a pointer and add it to the address to move down the array.
Then I could use something like the movff instruction to move the contents of that location to my send buffer.
While I know how to move the contents of one variable into another, I don't know how to move the contents of a memory LOCATION to a variable.
Am I going about this the right way? Or is there a simple solution?
I figured that if I defined the array in BANKA SYSTEM, I could probably get the first address of that array using the "GetAddress/CHK?RP" macro
After that, I could incf a pointer and add it to the address to move down the array.
Then I could use something like the movff instruction to move the contents of that location to my send buffer.
While I know how to move the contents of one variable into another, I don't know how to move the contents of a memory LOCATION to a variable.
Am I going about this the right way? Or is there a simple solution?