>DJNZ ... from the top of my head. The NZ means non-zero, I guess for the A register value. The DJ must be a jump although I can't rember the difference with JPNZ ?
Aah... remembered now, didn't look up the cheat sheet: decrease, jump if not zero. Basically, your NEXT command.