Skip to content

Commit

Permalink
Interpreter: Fix andis instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsh1ft3r authored Feb 3, 2025
1 parent effdd90 commit b039cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Xenon/Core/XCPU/Interpreter/PPC_ALU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ void PPCInterpreter::PPCInterpreter_andis(PPU_STATE *hCore) {
D_FORM_rS_rA_UI;

GPR(rA) = GPR(rS) & (UI << 16);
ppcUpdateCR(hCore, 0, static_cast<u32>(GPR(rA)));
u32 CR = CRCompS(hCore, GPR(rA), 0);
ppcUpdateCR(hCore, 0, CR);
}

void PPCInterpreter::PPCInterpreter_cmp(PPU_STATE *hCore) {
Expand Down

0 comments on commit b039cb3

Please sign in to comment.