I think you're getting confused with how djnz works
For example, this code leaves hl equal to $100:
ld b,0
ld h,b
ld l,b
;Zero b and hl
loop:
inc hl
djnz loop
In short, you normally don't write infinite loops with djnz.
In addition, "While 1" loops can be useful.
0->X
While 1
Output(0,0,X+1->X>Dec
ReturnIf getkey(0)
End
Wait, do you mean just an empty loop? (I missed the previous page)
In that case, there are still ways to get around it. Another endless loop: (and yes, storing to a variable address returns the address, not the valued stored)
0->A
While 0->{A}=A
End