*
*
*       INDEXED ADDRESSING EXAMPLE
*
*
RAMStart        EQU     $0040
RomStart        EQU     $E000
ResetVector     EQU     $FFFE

                ORG     ResetVector
                FDB     MAIN

                ORG     RAMStart
A_Data          FCB     $71,$02,$FC,$FC,$9D
B_Data          FCB     $08,$A3,$7B,$01,$3c
C_Data          RMB     5

                ORG     RomStart
MAIN            LDX     #$5

LOOP            LDA     A_Data-1,X
                ADD     B_data-1,X
                STA     C_Data-1,X
                DBNZX   LOOP
                STOP


