;This program adds up all the bytes in the range 1000h - 1fffh
; using a pointer
;   POINTER VERSION

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

lp:     add     al, byte ptr 0h [si]   ; si POINTS to the memory location
        add     si, 1                     ; next byte
        cmp     si, 1fffh                 ;end of array??
        jbe     lp

        int     20h
        end