public void TestReadWriteBootFlag() { var mmu = new Mmu(_bios); byte testVal = 0x43; mmu.WriteByte(0xFF50, testVal); Assert.AreEqual(testVal, mmu.ReadByte(0xFF50)); }
public void TestReadBios() { var mmu = new Mmu(_bios); for (ushort i = 0; i < _bios.Length; i++) { Assert.AreEqual(_bios[i], mmu.ReadByte(i), $"Error reading BIOS byte {i}"); } mmu.WriteByte(0xFF50, 0x01); //FIXME: reenable once MMU area supported after boot //for(ushort i = 0; i < _bios.Length; i++) //{ // Assert.AreEqual(0, mmu.ReadByte(i), $"Error reading byte {i} after boot"); //} }
public void TestReadInvalid() { var mmu = new Mmu(_bios); mmu.ReadByte(0xFFFF); }