DSPLLE - SR_10 flag implemented (no idea what name should it have or how/when this is supposed to be used)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5075 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar
2010-02-17 19:10:31 +00:00
parent 634f6e512e
commit 377ece3294
4 changed files with 60 additions and 34 deletions

View File

@ -334,12 +334,12 @@ void andi(const UDSPInstruction& opc)
// Logic OR of accumulator mid part $acD.m with immediate value I.
void ori(const UDSPInstruction& opc)
{
u8 reg = DSP_REG_ACM0 + ((opc.hex >> 8) & 0x1);
u8 reg = (opc.hex >> 8) & 0x1;
u16 imm = dsp_fetch_code();
g_dsp.r[reg] |= imm;
g_dsp.r[DSP_REG_ACM0 + reg] |= imm;
Update_SR_Register16((s16)g_dsp.r[reg]);
Update_SR_Register16((s16)g_dsp.r[DSP_REG_ACM0 + reg], false, false, isSR10(dsp_get_long_acc(reg)));
}
//-------------------------------------------------------------
@ -358,8 +358,9 @@ void add(const UDSPInstruction& opc)
zeroWriteBackLog();
dsp_set_long_acc(areg, res);
res = dsp_get_long_acc(areg);
Update_SR_Register64(res);
Update_SR_Register64(res, false, false, isSR10(res));
}
// ADDP $acD