From f01a78699fb541c6c054af3604c7ab2fbe42f3e0 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 28 Feb 2009 16:58:54 -0700 Subject: [PATCH] fix opcode for lbzx --- src/powerpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/powerpc.cpp b/src/powerpc.cpp index 0caff03856..694ce93782 100644 --- a/src/powerpc.cpp +++ b/src/powerpc.cpp @@ -52,7 +52,7 @@ inline int MD(int op, int rs, int ra, int sh, int mb, int xo, int sh2, int rc) { inline int MDS(int op, int rs, int ra, int rb, int mb, int xo, int rc) { return op<<26|rs<<21|ra<<16|rb<<11|mb<<5|xo<<1|rc; } // INSTRUCTIONS inline int lbz(int rt, int ra, int i) { return D(34, rt, ra, i); } -inline int lbzx(int rt, int ra, int rb) { return X(34, rt, ra, rb, 87, 0); } +inline int lbzx(int rt, int ra, int rb) { return X(31, rt, ra, rb, 87, 0); } inline int lha(int rt, int ra, int i) { return D(42, rt, ra, i); } inline int lhax(int rt, int ra, int rb) { return X(31, rt, ra, rb, 343, 0); } inline int lhz(int rt, int ra, int i) { return D(40, rt, ra, i); }