1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Fixed strupper() of fields in line, issue #24

This commit is contained in:
rzzzwilson
2021-06-14 14:05:55 +07:00
parent f38611a5ae
commit 6275d94bca
3 changed files with 6 additions and 11 deletions

View File

@@ -404,6 +404,7 @@ delimfields(char *buffer,
++chptr;
if (*chptr)
*(chptr++) = '\0';
strupper(*label);
}
/* if not off end of buffer, look for opcode */
@@ -426,7 +427,7 @@ delimfields(char *buffer,
++chptr;
if (*chptr)
*(chptr++) = '\0';
strupper(*opcode);
}
}
}
@@ -451,19 +452,13 @@ delimfields(char *buffer,
++chptr;
if (*chptr)
*(chptr++) = '\0';
strupper(*field);
}
}
}
if (*chptr == ';')
*comment = chptr;
if (*label)
strupper(*label);
if (*opcode)
strupper(*opcode);
if (*field)
strupper(*field);
}

View File

@@ -1,7 +1,7 @@
;-------------------------------
; Just loop in place - CPU speed test.
;-------------------------------
org 0100 ;
start jmp start ;
org 0100 ;
start jmp start ;
;-------------------------------
end start
end ;start

Binary file not shown.