Starting to test addressings modes

This commit is contained in:
AnonymusRaccoon
2020-02-10 14:47:25 +01:00
parent fd90957f21
commit a25daa18b6
8 changed files with 49 additions and 16 deletions
+10
View File
@@ -287,6 +287,16 @@ Test(BusRead, ReadROM)
cr_assert_eq(data, 123);
}
Test(BusRead, ReadROMStart)
{
auto pair = Init();
uint8_t data;
pair.second.cartridge->_data[0] = 123;
data = pair.first.read(0x808000);
cr_assert_eq(data, 123);
}
Test(BusRead, ReadCPU)
{
auto pair = Init();