From c82d966ba10e91e1cd405c6479a9180984b00db6 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Wed, 30 Aug 2023 22:49:36 +0200 Subject: [PATCH] test_memory_register - Use value that would not be returned on read error --- tests/test_memory_register.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_memory_register.cpp b/tests/test_memory_register.cpp index 364bbf1..bd740e6 100644 --- a/tests/test_memory_register.cpp +++ b/tests/test_memory_register.cpp @@ -8,7 +8,7 @@ TEST_CASE("IE controllable via bus") { u8 test_ram[] = { - 0x3E, 0xFF, // LD A, $0xFF + 0x3E, 0xA5, // LD A, $0xA5 0xE0, 0xFF, // LDH [FF:FF], A }; @@ -21,5 +21,5 @@ TEST_CASE("IE controllable via bus") cpu.step(); cpu.step(); - CHECK(cpu.state.IE == 0xFF); + CHECK(cpu.state.IE == 0xA5); }