Add flags parameters in singleOpcode function, and add ADC Test (#36)
* Add flags parameters in singleOpcode function, and add ADC Test * Update CpuTestAlu.cs * Update CpuTestAlu.cs * Update CpuTestAlu.cs * Update CpuTestAlu.cs
This commit is contained in:
parent
f09a0082bf
commit
eafc58c9f2
2 changed files with 18 additions and 3 deletions
|
@ -5,6 +5,15 @@ namespace Ryujinx.Tests.Cpu
|
|||
{
|
||||
public class CpuTestAlu : CpuTest
|
||||
{
|
||||
[TestCase(2u, 3u, 6ul, true)]
|
||||
[TestCase(2u, 3u, 5ul, false)]
|
||||
public void Adc(uint A, uint B, ulong Result, bool CarryTest)
|
||||
{
|
||||
// ADC X0, X1, X2
|
||||
AThreadState ThreadState = SingleOpcode(0x9A020020, X1: A, X2: B, Carry: CarryTest);
|
||||
Assert.AreEqual(Result, ThreadState.X0);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Add()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue