I need to pass large arrays between PBP and ASM - larger than the BANKA limit. If I define an array in PBP, what is the best way to find the start location (in RAM) of that array in ASM? I'm using an 18F8723.
Printable View
I need to pass large arrays between PBP and ASM - larger than the BANKA limit. If I define an array in PBP, what is the best way to find the start location (in RAM) of that array in ASM? I'm using an 18F8723.
I guess another question could be - does CH?RP work for RAM variables?
I ran a test. It does. Problem solved.
Charles,
Since you are using an 18F. You might want to use the FSR's and the LFSR instruction to access your arrays.
Code:LFSR FSR0, _MyArray
MOVF _Idx, W
MOVFF PLUSW0, _Destination
Thank you Darrel. I'll try it tomorrow.