We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e18c1 commit 49dee12Copy full SHA for 49dee12
test/core/RandomAccessMemoryTest.cpp
@@ -41,6 +41,15 @@ TEST_SUITE("RandomAccessMemoryTest") {
41
}
42
43
44
+ SUBCASE("memory should be programmable manually 2") {
45
+ // Add a test where opcode and operand are different
46
+ mar.registerValueChanged(1);
47
+ ram.program(std::bitset<4>("1010"), std::bitset<4>("0011"));
48
+ ram.out();
49
+
50
+ CHECK_EQ(bus->read(), std::bitset<8>("10100011").to_ulong());
51
+ }
52
53
SUBCASE("reset() should reset address but not memory content") {
54
// Set a value of 10 at memory location 0
55
ram.program(Utils::to4bits(0), Utils::to4bits(10));
0 commit comments