mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-06 19:01:36 +03:00
More DSPSpy findings - nakee's "TSTAXL" isn't test. Not sure what it is though.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3003 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d939afdcf2
commit
b4c22390ac
4 changed files with 39 additions and 15 deletions
|
@ -510,7 +510,7 @@ void si(const UDSPInstruction& opc)
|
|||
|
||||
// TSTAXH $axR.h
|
||||
// 1000 011r xxxx xxxx
|
||||
// Test hight part of secondary accumulator $axR.h.
|
||||
// Test high part of secondary accumulator $axR.h.
|
||||
void tstaxh(const UDSPInstruction& opc)
|
||||
{
|
||||
u8 reg = (opc.hex >> 8) & 0x1;
|
||||
|
@ -519,15 +519,17 @@ void tstaxh(const UDSPInstruction& opc)
|
|||
Update_SR_Register16(val);
|
||||
}
|
||||
|
||||
// TSTAXL $axR.h
|
||||
// 1000 011r xxxx xxxx
|
||||
// Test lower part of secondary accumulator $axR.h.
|
||||
// TSTAXL $acR
|
||||
// 1000 r001 xxxx xxxx
|
||||
// r specifies one of the main accumulators.
|
||||
// Definitely not a test instruction - it changes the accums.
|
||||
// Not affected by m0/m2. Not affected by s16/s40.
|
||||
void tstaxl(const UDSPInstruction& opc)
|
||||
{
|
||||
u8 reg = (opc.hex >> 8) & 0x1;
|
||||
s16 val = dsp_get_ax_l(reg);
|
||||
|
||||
Update_SR_Register16(val);
|
||||
// This is probably all wrong.
|
||||
//u8 reg = (opc.hex >> 8) & 0x1;
|
||||
//s16 val = dsp_get_ax_l(reg);
|
||||
//Update_SR_Register16(val);
|
||||
}
|
||||
|
||||
// CLR $acR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue