Пример #1
0
        public void RaiseInterrupt_IndividualEnableFlagDisabled_InterruptNotHandled()
        {
            AgbCpu cpu = CpuUtil.CreateCpu();

            cpu.MemoryMap.WriteU32(0x4000208, 1); // IME = 1
            cpu.MemoryMap.WriteU16(0x4000200, 0); // IE = VBlank IRQ disabled

            cpu.MemoryMap.FlushMmio();

            cpu.RaiseInterrupt(InterruptType.VBlank);

            Assert.Equal(CpuMode.User, cpu.CurrentStatus.Mode);
        }