Running out of label names in assembly

Posted by mamidon on Stack Overflow See other posts from Stack Overflow or by mamidon
Published on 2010-03-09T01:44:18Z Indexed on 2010/03/09 1:51 UTC
Read the original article Hit count: 293

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about assembly

Related posts about labels