mips: Duh, oops. LUI is one reg, of course.

This commit is contained in:
Unknown W. Brackets 2014-11-18 01:06:25 -08:00
parent 0df0ea7d85
commit 8b6a5f2ecc
2 changed files with 4 additions and 4 deletions

View File

@ -236,10 +236,10 @@ void MIPSXEmitter::XORI(MIPSReg rt, MIPSReg rs, s16 imm) {
_dbg_assert_msg_(JIT, rs < F_BASE && rt < F_BASE, "Bad emitter arguments");
Write32Fields(26, 0x0e, 21, rs, 16, rt, 0, (u16)imm);
}
void MIPSXEmitter::LUI(MIPSReg rt, MIPSReg rs, s16 imm) {
void MIPSXEmitter::LUI(MIPSReg rt, s16 imm) {
// 001111 sssss ttttt iiiiiiiiiiiiiiii
_dbg_assert_msg_(JIT, rs < F_BASE && rt < F_BASE, "Bad emitter arguments");
Write32Fields(26, 0x0f, 21, rs, 16, rt, 0, (u16)imm);
_dbg_assert_msg_(JIT, rt < F_BASE, "Bad emitter arguments");
Write32Fields(26, 0x0f, 21, rt, 0, (u16)imm);
}
void MIPSXCodeBlock::AllocCodeSpace(int size) {

View File

@ -146,7 +146,7 @@ public:
void XORI(MIPSReg rt, MIPSReg rs, s16 imm);
// Clears the lower bits.
void LUI(MIPSReg rt, MIPSReg rs, s16 imm);
void LUI(MIPSReg rt, s16 imm);
protected:
inline void Write32(u32 value) {