mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-06 19:01:36 +03:00
docs/DSP: Fix inconsistency with ADDI and CMPI
We don't have anything called $amD, though we do have $acsD. However, these instructions affect flags based on the whole accumulator, so it's better to just use $acD.
This commit is contained in:
parent
baf2c710ff
commit
7c63bd1893
3 changed files with 17 additions and 15 deletions
|
@ -143,11 +143,12 @@ void Interpreter::cmpaxh(const UDSPInstruction opc)
|
|||
ZeroWriteBackLog();
|
||||
}
|
||||
|
||||
// CMPI $amD, #I
|
||||
// CMPI $acD, #I
|
||||
// 0000 001d 1000 0000
|
||||
// iiii iiii iiii iiii
|
||||
// Compares mid accumulator $acD.hm ($amD) with sign extended immediate value I.
|
||||
// Although flags are being set regarding whole accumulator register.
|
||||
// Compares accumulator with immediate. Comparison is executed
|
||||
// by subtracting the immediate (16-bit sign extended) from mid accumulator
|
||||
// $acD.hm and computing flags based on whole accumulator $acD.
|
||||
//
|
||||
// flags out: x-xx xxxx
|
||||
void Interpreter::cmpi(const UDSPInstruction opc)
|
||||
|
@ -166,8 +167,8 @@ void Interpreter::cmpi(const UDSPInstruction opc)
|
|||
|
||||
// CMPIS $acD, #I
|
||||
// 0000 011d iiii iiii
|
||||
// Compares accumulator with short immediate. Comaprison is executed
|
||||
// by subtracting short immediate (8bit sign extended) from mid accumulator
|
||||
// Compares accumulator with short immediate. Comparison is executed
|
||||
// by subtracting the short immediate (8-bit sign extended) from mid accumulator
|
||||
// $acD.hm and computing flags based on whole accumulator $acD.
|
||||
//
|
||||
// flags out: x-xx xxxx
|
||||
|
@ -489,7 +490,7 @@ void Interpreter::addaxl(const UDSPInstruction opc)
|
|||
UpdateSR64Add(acc, acx, GetLongAcc(dreg));
|
||||
}
|
||||
|
||||
// ADDI $amD, #I
|
||||
// ADDI $acD, #I
|
||||
// 0000 001d 0000 0000
|
||||
// iiii iiii iiii iiii
|
||||
// Adds immediate (16-bit sign extended) to mid accumulator $acD.hm.
|
||||
|
|
|
@ -220,11 +220,12 @@ void DSPEmitter::cmpaxh(const UDSPInstruction opc)
|
|||
}
|
||||
}
|
||||
|
||||
// CMPI $amD, #I
|
||||
// CMPI $acD, #I
|
||||
// 0000 001d 1000 0000
|
||||
// iiii iiii iiii iiii
|
||||
// Compares mid accumulator $acD.hm ($amD) with sign extended immediate value I.
|
||||
// Although flags are being set regarding whole accumulator register.
|
||||
// Compares accumulator with immediate. Comparison is executed
|
||||
// by subtracting the immediate (16-bit sign extended) from mid accumulator
|
||||
// $acD.hm and computing flags based on whole accumulator $acD.
|
||||
//
|
||||
// flags out: x-xx xxxx
|
||||
void DSPEmitter::cmpi(const UDSPInstruction opc)
|
||||
|
@ -257,7 +258,7 @@ void DSPEmitter::cmpi(const UDSPInstruction opc)
|
|||
// CMPIS $acD, #I
|
||||
// 0000 011d iiii iiii
|
||||
// Compares accumulator with short immediate. Comparison is executed
|
||||
// by subtracting short immediate (8bit sign extended) from mid accumulator
|
||||
// by subtracting the short immediate (8-bit sign extended) from mid accumulator
|
||||
// $acD.hm and computing flags based on whole accumulator $acD.
|
||||
//
|
||||
// flags out: x-xx xxxx
|
||||
|
@ -686,7 +687,7 @@ void DSPEmitter::addaxl(const UDSPInstruction opc)
|
|||
}
|
||||
}
|
||||
|
||||
// ADDI $amD, #I
|
||||
// ADDI $acD, #I
|
||||
// 0000 001d 0000 0000
|
||||
// iiii iiii iiii iiii
|
||||
// Adds immediate (16-bit sign extended) to mid accumulator $acD.hm.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue