Created
June 7, 2017 02:01
-
-
Save benpye/0a03af1a80ddae6005672d9dfdd322ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST_CASE("CB opcodes", "[cb]") | |
{ | |
auto cpu = std::make_unique<CpuWrapper>(); | |
uint8_t code[] = {0xCB, 0xFF}; | |
cpu->WriteMemory(code, 0, sizeof(code)); | |
cpu->Reset(); | |
cpu->SetA(0); | |
cpu->RunCycles(8); | |
REQUIRE(cpu->GetPC() == 2); | |
REQUIRE(cpu->GetA() == 0b10000000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment