Implemented Opcode: mcrf

This commit is contained in:
Gliniak 2021-06-11 23:31:09 +02:00
parent 332f69f36b
commit 0e1353aa71
1 changed files with 6 additions and 2 deletions

View File

@ -416,8 +416,12 @@ int InstrEmit_crxor(PPCHIRBuilder& f, const InstrData& i) {
}
int InstrEmit_mcrf(PPCHIRBuilder& f, const InstrData& i) {
XEINSTRNOTIMPLEMENTED();
return 1;
uint32_t crfd = i.XL.BO >> 2;
Value* bi = f.LoadCR(i.XL.BI >> 2);
f.StoreCR(crfd, bi);
f.UpdateCR(crfd, bi);
return 0;
}
// System linkage (A-24)