[Jit] Fixes BNE

This commit is contained in:
Ced2911 2013-11-07 14:23:12 +01:00 committed by Unknown W. Brackets
parent 2ac5d38b90
commit 38a59cca95
2 changed files with 9 additions and 1 deletions

View File

@ -223,11 +223,18 @@ namespace PpcGen {
void PPCXEmitter::BEQ (const void *fnptr) {
CHECK_SMALL_JUMP
s32 func = (s32)fnptr - s32(code);
s32 func = (s32)fnptr - s32(code);
u32 instr = (0x41820000 | ( func & 0xfffc));
Write32(instr);
}
void PPCXEmitter::BNE (const void *fnptr) {
CHECK_SMALL_JUMP
s32 func = (s32)fnptr - s32(code);
u32 instr = (0x40820000 | ( func & 0xfffc));
Write32(instr);
}
void PPCXEmitter::BGT(const void *fnptr) {
CHECK_SMALL_JUMP

View File

@ -203,6 +203,7 @@ namespace PpcGen
void BA (const void *fnptr);
void BLA(const void *fnptr);
void BEQ(const void *fnptr);
void BNE(const void *fnptr);
void BLE(const void *fnptr);
void BLT(const void *fnptr);
void BGT(const void *fnptr);