summaryrefslogtreecommitdiff
path: root/Q1.tests/Core/AddressingModesTests.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-18 23:08:58 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-18 23:08:58 +1000
commit7d20ff2a8e89e646fa79be69c8d07a512081daba (patch)
tree67433c74d55f778065363010a593c44a0f65296b /Q1.tests/Core/AddressingModesTests.cs
parent0bb62fc65526a0981cd328dea1b09aba8ce0a576 (diff)
test: Add tests for all control instructions and base CPU implementation
Diffstat (limited to 'Q1.tests/Core/AddressingModesTests.cs')
-rw-r--r--Q1.tests/Core/AddressingModesTests.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Q1.tests/Core/AddressingModesTests.cs b/Q1.tests/Core/AddressingModesTests.cs
index 19be64d..058e373 100644
--- a/Q1.tests/Core/AddressingModesTests.cs
+++ b/Q1.tests/Core/AddressingModesTests.cs
@@ -2,6 +2,7 @@ namespace Q1.tests.Core;
using core;
using core.Arch;
+using core.Arch.Lookups;
[TestFixture]
public class AddressingModesTests
@@ -16,5 +17,8 @@ public class AddressingModesTests
Assert.That(populatedModes, Has.Length.EqualTo(8),
"Expected 8 addressing modes to be defined");
+
+ Assert.That(AddressingModes.Lookup.Length, Is.EqualTo(8),
+ "Expected addressing mode lookup to have 8 entries");
}
} \ No newline at end of file