summaryrefslogtreecommitdiff
path: root/asmmon.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-11-20 11:50:47 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2020-11-20 11:50:47 -0500
commitdc7ebb9d424bb39d59f09b8498746beb871c46f4 (patch)
tree69b6e2f4bd1fd488ce85e680c3d550e56fa40572 /asmmon.c
parent6a88d1af2ee5894365a56af89a6e97140f3e804d (diff)
- Cleaned up a bit of the code.
- Made the debug print for the CPU flags more readable. - Started work on implementing line number support into SuBAsm.
Diffstat (limited to 'asmmon.c')
-rw-r--r--asmmon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/asmmon.c b/asmmon.c
index 876e6f0..6796ebb 100644
--- a/asmmon.c
+++ b/asmmon.c
@@ -536,7 +536,6 @@ int asmmon(const char *fn) {
}
fp2 = fopen(fn2, "r");
if (fp2 == NULL) {
- free(path);
fclose(fp);
cleanup();
return 2;
@@ -572,7 +571,7 @@ int asmmon(const char *fn) {
if (isspace(tmp[i])) {
for (; isspace(tmp[i]); i++);
}
- for (; !isspace(tmp[i]) && tmp[i] != '\0' && tmp[i] != '\n'; arg[j++] = tmp[i++]);
+ for (; !(isdelm(tmp[i], 0) & 0x11); arg[j++] = tmp[i++]);
arg[j] = '\0';
j = 0;
isdebug = (arg[j] == 'd' || !strcasecmp(arg, "debug"));