mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user