Example #1
0
        public void TestXorRegMemMismatchIdLabel()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.AH], P[PET.Comma], P[PET.Label1]
            };
            var command = new XorCommand(tokens, OperandsSetType.RM);

            runExpectedExceptionTest(command);
        }
Example #2
0
        public void TestXorMemRegMismatch10()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.WordMemCell], P[PET.Comma], P[PET.CH]
            };
            var command = new XorCommand(tokens, OperandsSetType.MR);

            runExpectedExceptionTest(command);
        }
Example #3
0
        public void TestXorRegRegMismatch10()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.DX], P[PET.Comma], P[PET.CL]
            };
            var command = new XorCommand(tokens, OperandsSetType.RR);

            runExpectedExceptionTest(command);
        }
Example #4
0
        public void TestXorMemImMismatch()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.ByteMemCell], P[PET.Comma], P[PET.WordConst]
            };
            var command = new XorCommand(tokens, OperandsSetType.MI);

            runExpectedExceptionTest(command);
        }
Example #5
0
        public void TestXorRegMem1()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.BX], P[PET.Comma], P[PET.WordMemCell]
            };
            var command = new XorCommand(tokens, OperandsSetType.RM);

            runTest(command, new List <byte[]> {
                new byte[] { 0x33, 0x1E, 0x00, 0x00 }
            });
        }
Example #6
0
        public void TestXorRegMem0()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.AH], P[PET.Comma], P[PET.ByteMemCell]
            };
            var command = new XorCommand(tokens, OperandsSetType.RM);

            runTest(command, new List <byte[]> {
                new byte[] { 0x32, 0x26, 0x00, 0x00 }
            });
        }
Example #7
0
        public void TestXorRegReg1()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.BX], P[PET.Comma], P[PET.AX]
            };
            var command = new XorCommand(tokens, OperandsSetType.RR);

            runTest(command, new List <byte[]> {
                new byte[] { 0x33, 0xD8 }
            });
        }
Example #8
0
        public void TestXorMemIm11()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.WordMemCell], P[PET.Comma], P[PET.WordConst]
            };
            var command = new XorCommand(tokens, OperandsSetType.MI);

            runTest(command, new List <byte[]> {
                new byte[] { 0x81, 0x36, 0x00, 0x00, 0x10, 0x27 }
            });
        }
Example #9
0
        public void TestXorMemIm00()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.ByteMemCell], P[PET.Comma], P[PET.ByteConst]
            };
            var command = new XorCommand(tokens, OperandsSetType.MI);

            runTest(command, new List <byte[]> {
                new byte[] { 0x80, 0x36, 0x00, 0x00, 0x64 }
            });
        }
Example #10
0
        public void TestXorRegIm11()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.DX], P[PET.Comma], P[PET.WordConst]
            };
            var command = new XorCommand(tokens, OperandsSetType.RI);

            runTest(command, new List <byte[]> {
                new byte[] { 0x81, 0xF2, 0x10, 0x27 }
            });
        }
Example #11
0
        public void TestXorRegIm10()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.CX], P[PET.Comma], P[PET.ByteConst]
            };
            var command = new XorCommand(tokens, OperandsSetType.RI);

            runTest(command, new List <byte[]> {
                new byte[] { 0x83, 0xF1, 0x64 }
            });
        }
Example #12
0
        public void TestXorMemReg1()
        {
            var tokens = new List <Token> {
                P[PET.XOR], P[PET.WordMemCell], P[PET.Comma], P[PET.DX]
            };
            var command = new XorCommand(tokens, OperandsSetType.MR);

            runTest(command, new List <byte[]> {
                new byte[] { 0x31, 0x16, 0x00, 0x00 }
            });
        }