Consider the following 8085 program:
LABEL MNEMONIC
MVI A, 00H
MVI C, 06H
LOOP: NOP
NOP
NOP
NOP
NOP
DCR C
JNZ LOOP
HLT
i. Rewrite the program using JZ instead of JNZ conditional instruction.
LABEL MNEMONIC
MVI A, 00H
MVI C, 06H
LOOP: NOP
NOP
NOP
NOP
NOP
DCR C
JZ LOOP
HLT
ii. Rewrite your answer program using Z80 instructions.
LABEL MNEMONIC
LD A, 00H
LD C, 06H
LOOP: NOP
NOP
NOP
NOP
NOP
DEC C
JP NZ, LOOP
HALT