/*****************************************************************************/
/* */
-/* asmlabel.c */
+/* asmlabel.c */
/* */
-/* Generate assembler code labels */
+/* Generate assembler code labels */
/* */
/* */
/* */
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
static unsigned NextLabel = 0;
/* Check for an overflow */
- if (NextLabel > 0xFFFF) {
+ if (NextLabel >= 0xFFFF) {
Internal ("Local label overflow");
}
if (Name[0] != 'L' || strlen (Name) != 5) {
return 0;
}
- for (I = 1; I <= 5; ++I) {
+ for (I = 1; I <= 4; ++I) {
if (!IsXDigit (Name[I])) {
return 0;
}
/* Local label name */
return 1;
}
-
-
-
-