Skip to main content
Visitor II
April 8, 2004
Question

Long Indirect Indexed Addr.Mode

  • April 8, 2004
  • 4 replies
  • 857 views
Posted on April 08, 2004 at 03:46

Long Indirect Indexed Addr.Mode

    This topic has been closed for replies.

    4 replies

    hkurtAuthor
    Visitor II
    April 7, 2004
    Posted on April 07, 2004 at 11:36

    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?
    Visitor II
    April 7, 2004
    Posted on April 07, 2004 at 14:57

    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- word

    hkurtAuthor
    Visitor II
    April 7, 2004
    Posted on April 07, 2004 at 19:24

    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- word

    Visitor II
    April 8, 2004
    Posted on April 08, 2004 at 03:46

    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.