Example #1
0
 private static void TestIndex(PrefixCbOpCode op, OpCode expected, bool gameboy = true)
 {
     using (var fixture = new DecodeFixture(4, 15, PrimaryOpCode.Prefix_CB, op).ThrowOn8080().OnGameboy(gameboy))
     {
         fixture.Expected.OpCode(expected).Operands(Operand.mHL);
     }
 }
Example #2
0
        private static void TestZ80Index(PrefixCbOpCode op, Operand index, OpCode expected)
        {
            var displacement = Rng.SByte();

            using (var fixture = new DecodeFixture(6, 23, index.GetZ80IndexPrefix(), PrimaryOpCode.Prefix_CB, displacement, op).ThrowUnlessZ80())
            {
                fixture.Expected.OpCode(expected).Operands(index).Displacement(displacement);
            }
        }
Example #3
0
 public void SET_n_r(PrefixCbOpCode op, byte bit, Operand r) => Test(op, bit, r, OpCode.BitSet);
Example #4
0
 public void RES_n_r(PrefixCbOpCode op, byte bit, Operand r) => Test(op, bit, r, OpCode.BitReset);
Example #5
0
 public void BIT_n_r(PrefixCbOpCode op, byte bit, Operand r) => Test(op, bit, r, OpCode.BitTest, 3, 12);
Example #6
0
 public void RR_r_mIXYd(PrefixCbOpCode op, Operand r, Operand index) => TestZ80AutocopyIndex(op, index, r, index, OpCode.RotateRight);
Example #7
0
 public void RR_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.RotateRight);
Example #8
0
 public void RRC_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.RotateRightWithCarry);
Example #9
0
 public void SLS_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.ShiftLeftSet, false);
Example #10
0
 public void RLC_r_mIXYd(PrefixCbOpCode op, Operand r, Operand index) => TestZ80AutocopyIndex(op, index, r, index, OpCode.RotateLeftWithCarry);
Example #11
0
 public void SRL_r_mIXYd(PrefixCbOpCode op, Operand r, Operand index) => TestZ80AutocopyIndex(op, index, r, index, OpCode.ShiftRightLogical);
Example #12
0
 public void SRL_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.ShiftRightLogical);
Example #13
0
 public void SRA_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.ShiftRight);
Example #14
0
 public void SLS_r_mIXYd(PrefixCbOpCode op, Operand r, Operand index) => TestZ80AutocopyIndex(op, index, r, index, OpCode.ShiftLeftSet);
Example #15
0
 public void BIT_n_IXYd(Operand index, PrefixCbOpCode op, byte bit, Operand r) => Z80IndexTest(index, op, bit, r, OpCode.BitTest, 5, 20, false);
Example #16
0
 public void RL_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.RotateLeft);
Example #17
0
 public void SET_n_IXYd(Operand index, PrefixCbOpCode op, byte bit, Operand r) => Z80IndexTest(index, op, bit, r, OpCode.BitSet);
Example #18
0
 public void SLA_r(PrefixCbOpCode op, Operand r) => TestCb(op, r, OpCode.ShiftLeft);