mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-24 07:11:19 +00:00
Reworking the test for the CPU
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 2/10/20.
|
||||
//
|
||||
|
||||
#include <criterion/criterion.h>
|
||||
#include <bitset>
|
||||
#include "../tests.hpp"
|
||||
#include "../../sources/SNES.hpp"
|
||||
using namespace ComSquare;
|
||||
|
||||
|
||||
Test(AddrMode, Immediate)
|
||||
{
|
||||
auto pair = Init();
|
||||
pair.second.cpu->_registers.pc = 0x15;
|
||||
cr_assert_eq(pair.second.cpu->_GetImmediateAddr(), 0x15);
|
||||
cr_assert_eq(pair.second.cpu->_registers.pc, 0x16);
|
||||
}
|
||||
Reference in New Issue
Block a user