mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
dsp: lrs is also sign extended in "40bit" mode. tested (correctly, this time :D )
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5071 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
16b21f3790
commit
b88f510984
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ void lrs(const UDSPInstruction& opc)
|
||||||
u8 reg = ((opc.hex >> 8) & 0x7) + 0x18;
|
u8 reg = ((opc.hex >> 8) & 0x7) + 0x18;
|
||||||
u16 addr = (g_dsp.r[DSP_REG_CR] << 8) | (opc.hex & 0xFF);
|
u16 addr = (g_dsp.r[DSP_REG_CR] << 8) | (opc.hex & 0xFF);
|
||||||
g_dsp.r[reg] = dsp_dmem_read(addr);
|
g_dsp.r[reg] = dsp_dmem_read(addr);
|
||||||
|
dsp_conditional_extend_accum(reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
// LR $D, @M
|
// LR $D, @M
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue