Assuming locations for your block ends, and that you want my preferred assembly code since you haven't specified:
XOR A
LD C,A
LD D,10;
LOOP1: LD A,30
CP D
JR C,LOOP1X
XOR A
LD E,A
LOOP2: LD A,8
CP E
JR C,LOOP2X
INC C
INC C
INC C
INC E
JR LOOP2
LOOP2X: LD A,D
INC A
INC A
JR LOOP1
LOOP1X:
There you go: your code converted to Z80 assembly.