Copy Zero Flag to Carry FlagAssembler/8086

This small gem demostrates how to copy the Zero flag to the Carry flag. Just write:

;
; copy zero flag to carry flag
;
; input:
;   eax = register to use as copy base
;
; output:
;   flags
;
; destroys:
;   flags
;

        cmp     eax,1
Gem writer: Ervin Toth
last updated: 1998-03-16