1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-06-15 05:29:28 +00:00

IRQ disable flag is present by default after CPU boot.

This commit is contained in:
Radosław Kujawa 2017-01-27 12:31:20 +01:00
parent c1a63b011f
commit ca291b0336

View File

@ -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.