Example #1
0
        public void SetsFlags(
            int accu,
            int value,
            bool expZ,
            bool expN,
            bool expV
            )
        {
            int memAddress = 0x69;

            machine.CPU.A.Value = (byte)accu;
            machine.Memory.Set(memAddress, (byte)value);

            _bit.BIT_Memory(memAddress);

            AssertFlag.Zero(machine, expZ);
            AssertFlag.Negative(machine, expN);
            AssertFlag.Overflow(machine, expV);
        }