journeyman200
Newbie level 3
Code:
WaitHalfSec:
Mov R2, #30
L3: Mov r1, #250
L2: Mov R0, #250
L1: djnz Ro, L1;
djnz R1, L2;
djnz R2, L3;
ret
When I first call WaitHalfSec do the lines in labels L3, L2, L1 also get read? When "djnz, R2" calls L3 do all lines below L3, including L2 and L1, get read again or does it only read L3 and return? Because if it does, it seems like it'd be an infinite loop? Any help is appreciated.