2004-04-07 06:46 PM
2004-04-07 02:36 AM
As far as I understud, the definition of the pointr in the statement
ld A,([pointr.w],X) should be in the 8-Bit region of the code memory. The code memory of the STLITE29 starts at $E000. Are the first 256-byte of this memory 8-Bit addresses? can anyone ''enlightening'' me?2004-04-07 05:57 AM
Please refer table ''ST7 Addressing Mode Overview'' in the datasheet.
For ld A,([pointr.w],X): Mode - Long Indirect Indexed Destination/Source - 0000..FFFF Pointer Address- 00..FF Pointer Size- word2004-04-07 10:24 AM
you have not answered my question. I have looked there, but I couldn't understand. Is the pointer RAM or Code memory?
If it is code memory, where I have 8-Bit address in the ST7LITE29? Is it in the range $E000 - $E0FF ? If it is RAM have I to load the 16-Bit address fist in RAM, like ld A,{high TABLE} ld $80,A ld A,{low TABLE} ld $81,A pointr EQU $80 X = 0 ld A,([pointer.w],X) -> reads the first Byte of TABLE is that correct ? Can you give a sample?Quote:
On 2004-04-07 18:27, Jatin wrote: Please refer table ''ST7 Addressing Mode Overview'' in the datasheet. For ld A,([pointr.w],X): Mode - Long Indirect Indexed Destination/Source - 0000..FFFF Pointer Address- 00..FF Pointer Size- word2004-04-07 06:46 PM
The pointer is in the ram0 page of the memory which means the pointer address is a byte.
Yes, You can do it in the same manner you have done.