;trivial program to compare bytes and words
;compare byte ptr 1000h to the five WORD that follow it.
;put the count of equalities in byte ptr 0fffh
;
        mov al, byte ptr 1000h
        mov ah, 0               ; convert al into AX
        mov byte ptr 0fffh, 0      
        cmp word ptr 1001h, ax
        jne nxt1
        inc byte ptr 0fffh
nxt1:   cmp word ptr 1003h, ax
        jne nxt2
        inc byte ptr 0fffh
nxt2:   cmp word ptr 1005h, ax
        jne nxt3
        inc byte ptr 0fffh
nxt3:   cmp word ptr 1007h, ax
        jne nxt2
        inc byte ptr 0fffh
nxt4:   cmp word ptr 1009h, ax
        jne fini
        inc byte ptr 0fffh
fini:   int 20h
        end