;This program AGAIN figures out if byte ptr 200h is even or odd
;output:  byte ptr 201h is = 88 if it is even
;                          = ff if it is odd
;
           mov     al, byte ptr 200h       ;get the input
;   first, check for special case of num = 0
           add     al, 0                   ; set zero flag if num = 0
           jz      even
subagain:  sub     al, 2                   ; eventually either
;                                        1 - 2 = -1 occurs or
;                                        2 - 2 = 0 occurs
           jc      odd                     ;  1 - 2 happened, therefore odd
           jz      even                    ; 2 - 2 happened, therefore even
           jmp     subagain
even:      mov     byte ptr 201h, 88h
           int     20h
odd:       mov     byte ptr 201h, 0ffh
           int     20h
           end