So here is line 1012. Right before it thinks there is an undefined label I have it print the label it should go to so I can see what R$ is