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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
BIN
iasm/test.ptp
BIN
iasm/test.ptp
Binary file not shown.
Reference in New Issue
Block a user