;This program accepts a byte from position 200H, and determines whether
; it is even or odd.  It leaves a zero in the carry flag if it is even,
;  or a one if it is odd.
;
        mov     al, byte ptr 200h       ;get the input
        add     al, al                  ; double it - i.e, mult 2
        add     al, al                  ;  (or shift left by one bit)
        add     al, al
        add     al, al
        add     al, al
        add     al, al
        add     al, al
        add     al, al                  ; now, the rightmost bit should be
;                                        in the carry flag!
        hlt
        end