From eb22289dc7a2819f0eaa94eddef2a49c5fb26f15 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 25 May 2013 04:25:27 -0700 Subject: [PATCH] Fixing bad fcmpu disasm. --- src/xenia/cpu/ppc/disasm_fpu.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenia/cpu/ppc/disasm_fpu.cc b/src/xenia/cpu/ppc/disasm_fpu.cc index 3406c73c2..5bc30010b 100644 --- a/src/xenia/cpu/ppc/disasm_fpu.cc +++ b/src/xenia/cpu/ppc/disasm_fpu.cc @@ -170,11 +170,11 @@ XEDISASMR(fcmpo, 0xFC000040, X )(InstrData& i, InstrDisasm& d) { } XEDISASMR(fcmpu, 0xFC000000, X )(InstrData& i, InstrDisasm& d) { - d.Init("fcmpu", "Floating Compare Unordered", - (i.XO.OE ? InstrDisasm::kOE : 0) | (i.XO.Rc ? InstrDisasm::kRc : 0)); - d.AddRegOperand(InstrRegister::kGPR, i.XO.RT, InstrRegister::kWrite); - d.AddRegOperand(InstrRegister::kGPR, i.XO.RA, InstrRegister::kRead); - d.AddRegOperand(InstrRegister::kGPR, i.XO.RB, InstrRegister::kRead); + d.Init("fcmpu", "Floating Compare Unordered", 0); + d.AddCR(i.X.RT >> 2, InstrRegister::kWrite); + d.AddUImmOperand(i.X.RT >> 2, 1); + d.AddRegOperand(InstrRegister::kGPR, i.X.RA, InstrRegister::kRead); + d.AddRegOperand(InstrRegister::kGPR, i.X.RB, InstrRegister::kRead); return d.Finish(); }