Running out of label names in assembly
- by mamidon
Heyo,
My class at college has us writing programs in assembly. I have never truly appreciated the ease of C until now.
Now, when I program in assembly, I often have to make while/for/if loops and conditionals with labels eg:
SKIP:
...
COMP:ADD R1, R1, #0 ;Check for equality
BRZ WHILEEND
... ;code inside the while loop
JMP COMP ;Return to while loop
WHILEEND:
...
So, in this while loop (example) I have used 1 label for the subroutine and 2 more for the loop itself. I've run out of good label names for all the loops and branches I'm doing in assembly, what do you guys do to keep it varied and descriptive?