diff options
| author | nakeee <nakeee@gmail.com> | 2009-05-01 12:15:48 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-05-01 12:15:48 +0000 |
| commit | 6cc8c0744b3e95e5c199b3598eeabcbfb82a2cc0 (patch) | |
| tree | 57b755a02aee82d45c3931c749b879c063e3c493 /Source/Core/DSPCore/Src/assemble.cpp | |
| parent | e39f0f9ce88229a94b2a034db0571545be58dc6a (diff) | |
DSP: Fixed case and some printing in asm
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3117 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/assemble.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/assemble.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DSPCore/Src/assemble.cpp b/Source/Core/DSPCore/Src/assemble.cpp index 0c6edc072a..45c63c12d7 100644 --- a/Source/Core/DSPCore/Src/assemble.cpp +++ b/Source/Core/DSPCore/Src/assemble.cpp @@ -778,7 +778,8 @@ bool DSPAssembler::AssembleFile(const char *fname, int pass) param_t params[10] = {{0}};
param_t params_ext[10] = {{0}};
-
+
+ bool upper = true;
for (int i = 0; i < LINEBUF_SIZE; i++)
{
char c = line[i];
@@ -814,7 +815,9 @@ bool DSPAssembler::AssembleFile(const char *fname, int pass) c = 0x00;
if (c == 0x09) // tabs to spaces
c = ' ';
- if (c >= 'a' && c <= 'z') // convert to uppercase
+ if (c == '"')
+ upper = !upper;
+ if (upper && c >= 'a' && c <= 'z') // convert to uppercase
c = c - 'a' + 'A';
line[i] = c;
if (c == 0)
|
