Fix an error that prevents building on 64bit systems.
This commit is contained in:
parent
c7ca6caf30
commit
ec413dd057
@ -424,20 +424,20 @@ namespace pim
|
|||||||
|
|
||||||
//Load value at base stack + offset into eax
|
//Load value at base stack + offset into eax
|
||||||
emit("8B 85"); //mov eax [ebp+ram+offset]
|
emit("8B 85"); //mov eax [ebp+ram+offset]
|
||||||
emit((int) (ram - argument.Integer));
|
emit((intptr_t) (ram - argument.Integer));
|
||||||
|
|
||||||
//Store value in eax onto top of program stack
|
//Store value in eax onto top of program stack
|
||||||
emit("89 07"); //mov [edi], eax
|
emit("89 07"); //mov [edi], eax
|
||||||
emit((int) (ram));
|
emit((intptr_t) (ram));
|
||||||
break;
|
break;
|
||||||
case Opcode::Store:
|
case Opcode::Store:
|
||||||
//Load value on top of the program stack into eax
|
//Load value on top of the program stack into eax
|
||||||
emit("8B 07"); //mov eax [edi]
|
emit("8B 07"); //mov eax [edi]
|
||||||
emit((int) (ram));
|
emit((intptr_t) (ram));
|
||||||
|
|
||||||
//Load value in eax onto top of program stack
|
//Load value in eax onto top of program stack
|
||||||
emit("89 85"); //mov [ebp+ram+offset], eax
|
emit("89 85"); //mov [ebp+ram+offset], eax
|
||||||
emit((int) (ram - argument.Integer));
|
emit((intptr_t) (ram - argument.Integer));
|
||||||
|
|
||||||
emit("83 C7 04"); //add edi 4
|
emit("83 C7 04"); //add edi 4
|
||||||
break;
|
break;
|
||||||
@ -634,4 +634,4 @@ namespace pim
|
|||||||
programCounter = entryPoint;
|
programCounter = entryPoint;
|
||||||
Run();
|
Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user