Fixing a bug with the write in 0x0

This commit is contained in:
AnonymusRaccoon
2020-02-13 11:09:18 +01:00
parent b1a2222b55
commit a6c3e54f9f
11 changed files with 96 additions and 9 deletions
+20
View File
@@ -0,0 +1,20 @@
//
// Created by anonymus-raccoon on 2/12/20.
//
#include <criterion/criterion.h>
#include <iostream>
#include <bitset>
#include "../tests.hpp"
#include "../../sources/SNES.hpp"
using namespace ComSquare;
//
//Test(STA, 8bits)
//{
// auto pair = Init();
// pair.second.cpu->_registers.p.m = false;
// pair.second.cpu->_registers.a = 0x11;
// pair.second.cpu->STA(0x0);
// auto data = pair.second.wram->_data[0];
// cr_assert_eq(data, 0x11, "The stored value should be 0x11 but it was 0x%x.", data);
//}