DSP: Fixed case and some printing in asm

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3117 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-05-01 12:15:48 +00:00
parent e39f0f9ce8
commit 6cc8c0744b
3 changed files with 12 additions and 7 deletions

View File

@ -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)