You are here : assembly8086JCXZ

JCXZ - 8086

Short Jump if CX register is 0.

Algorithm: if CX = 0 then jump


Syntax

JCXZ label


Example

include 'emu8086.inc'
 ORG 100h
 MOV CX, 0
 JCXZ label1
 PRINT 'CX is not zero.'
 JMP exit
label1:
 PRINT 'CX is zero.'
exit:
 RET


Output / Return Value


Limitations


Alternatives / See Also


Reference