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);
|
||||
|
||||
switch(Type) {
|
||||
case PTR_CHAR:
|
||||
case RET_CHAR:
|
||||
fprintf(OutputFile, "\tmovb\t%s, (%s)\n", ByteRegisters[Register1], Registers[Register2]);
|
||||
break;
|
||||
case PTR_INT:
|
||||
fprintf(OutputFile, "\tmovq\t%s, (%s)\n", Registers[Register1], Registers[Register2]);
|
||||
break;
|
||||
case PTR_LONG:
|
||||
case RET_INT:
|
||||
case RET_LONG:
|
||||
fprintf(OutputFile, "\tmovq\t%s, (%s)\n", Registers[Register1], Registers[Register2]);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user