.data
.386
.model flat, stdcall
option casemap :none ; case sensitive
.code
main PROC
mov cl,1 ; CL=1
sub cl,1 ; CL=0, SF=0, ZF=1
call DumpRegs
sub cl,1 ; CL=-1, SF=1, ZF=0
call DumpRegs
add ch,1 ; CH=0, SF=0, ZF=1
call DumpRegs
add ch,1 ; CH=1, SF=0, ZF=0
call DumpRegs
exit
main ENDP
END main