JZ

JZ n - Jump if Zero - Bit is set

 

Operating Mode

                                   

PC := n if Zero - Bit is 1

 

PC := PC + 1 if Zero - Bit is 0

 

Description

 

Checks Zero - Bit, if it has value 1, the program counter is set to n, else the program counter is just incremented by 1

 

 

Binary Command

15 14 13 12 11

10 9 8 7 6 5 4 3 2 1 0

11100

n

Example

 

JZ 23

15 14 13 12 11

10 9 8 7 6 5 4 3 2 1 0

11100

00000010111