Brute force fix for arrays. TODO: Investigate this.
This commit is contained in:
parent
83959b4793
commit
c2c4d2f1d5
|
@ -463,13 +463,11 @@ int AsStrDeref(int Register1, int Register2, int Type) {
|
||||||
printf("\tStoring contents of %s into %s through a dereference, type %d\n", Registers[Register1], Registers[Register2], Type);
|
printf("\tStoring contents of %s into %s through a dereference, type %d\n", Registers[Register1], Registers[Register2], Type);
|
||||||
|
|
||||||
switch(Type) {
|
switch(Type) {
|
||||||
case PTR_CHAR:
|
case RET_CHAR:
|
||||||
fprintf(OutputFile, "\tmovb\t%s, (%s)\n", ByteRegisters[Register1], Registers[Register2]);
|
fprintf(OutputFile, "\tmovb\t%s, (%s)\n", ByteRegisters[Register1], Registers[Register2]);
|
||||||
break;
|
break;
|
||||||
case PTR_INT:
|
case RET_INT:
|
||||||
fprintf(OutputFile, "\tmovq\t%s, (%s)\n", Registers[Register1], Registers[Register2]);
|
case RET_LONG:
|
||||||
break;
|
|
||||||
case PTR_LONG:
|
|
||||||
fprintf(OutputFile, "\tmovq\t%s, (%s)\n", Registers[Register1], Registers[Register2]);
|
fprintf(OutputFile, "\tmovq\t%s, (%s)\n", Registers[Register1], Registers[Register2]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user