;This program adds up all the bytes in the range 1000h - 1fffh
; using an offset from location 1000h
;   OFFSET VERSION

        mov     al, 0           ;accumulator is a byte
        mov     si, 0

lp:     add     al, byte ptr 1000h [si]   ; add byte si bytes past 1000h
        add     si, 1                     ; next byte
        cmp     si, 0fffh                 ;end of array??
        jbe     lp

        int     20h
        end