*
*       24-BIT ADDITION WITH INDEX REGISTER
*
        ORG     $0180
        FCB     $AA,$BB,$CC
        FCB     $01,$BB,$DD
        RMB     3


ADD24   ORG     $8000

        LDHX    #$0180
        LDA     $02,X
        ADD     $05,X
        STA     $08,X

        LDA     $01,X
        ADC     $04,X
        STA     $07,X

        LDA     ,X
        ADC     $03,X
        STA     $06,X

        NOP
        NOP



