Cleared out the top 16 bits in PARAM1 of the ABI_CallFunctionC16 JIT command.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5232 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
skidau 2010-03-24 20:27:09 +00:00
parent 095f81e2f9
commit 5ff07aace6

View File

@ -190,14 +190,16 @@ void XEmitter::ABI_RestoreStack(unsigned int frameSize) {
// Common functions
void XEmitter::ABI_CallFunction(void *func) {
// Far call
MOV(64, R(RAX), Imm64((u64)func));CALLptr(R(RAX));
MOV(64, R(RAX), Imm64((u64)func));
CALLptr(R(RAX));
//CALL(func);
}
void XEmitter::ABI_CallFunctionC16(void *func, u16 param1) {
MOV(16, R(ABI_PARAM1), Imm16(param1));
MOV(32, R(ABI_PARAM1), Imm32((u32)param1));
// Far call
MOV(64, R(RAX), Imm64((u64)func));CALLptr(R(RAX));
MOV(64, R(RAX), Imm64((u64)func));
CALLptr(R(RAX));
//CALL(func);
}