From ca291b033640f3642fec2dc5e8f8dc1c7b5e9dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Fri, 27 Jan 2017 12:31:20 +0100 Subject: [PATCH] IRQ disable flag is present by default after CPU boot. --- test/test_emulation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_emulation.c b/test/test_emulation.c index 6fbe5b8..dc4b3dd 100644 --- a/test/test_emulation.c +++ b/test/test_emulation.c @@ -557,7 +557,7 @@ ATF_TC_BODY(emul_php_plp, tc) ATF_REQUIRE(rom_start(&e, "test_emulation_php.rom", tc)); ATF_CHECK(e.regs.SP == 0xFE); - ATF_CHECK(bus_read_1(e.bus, STACK_END) == (P_CARRY|P_ZERO|P_UNDEFINED)); + ATF_CHECK(bus_read_1(e.bus, STACK_END) == (P_IRQ_DISABLE|P_CARRY|P_ZERO|P_UNDEFINED)); /* * Now let's see if loading back into accumulator works.