#
#	Example: adds 3,4 and 5 using indirect loading
#	R5 points to the first value
#
ini:    const   3
         const   4
         const   5
res:    mem     3

        loadn   ini    R5
        loadi   R5     R1
        inc     R5
        loadi   R5     R2
        inc     R5
        loadi   R5     R3
        add     R1     R2
        add     R2     R3
        store   R3     res
        halt	




