Пример #1
0
        public void StoreSpTest()
        {
            // C.SWSP
            var pairSwSp = new RvcTestPair(architecture)
            {
                ExpectedPayload   = te.LoadCSS(2, 0x3F, 01, 6),
                Coding            = te.ToBytes(0x86, 0xDF),
                ExpectedPayload32 = te.BuildSType(8, 2, 2, 1, 0xFC)
            };

            te.Test(pairSwSp);

            // C.SDSP
            var pairSdSp = new RvcTestPair(architecture)
            {
                ExpectedPayload   = te.LoadCSS(2, 0x3F, 01, 7),
                Coding            = te.ToBytes(0x86, 0xFF),
                ExpectedPayload32 = te.BuildSType(8, 3, 2, 1, 0x1F8)
            };

            te.Test(pairSdSp);

            // C.SQSP
            // C.FSWSP
            // C.FSDSP
        }
Пример #2
0
        public void StoreRegisterTest()
        {
            // C.SW
            var pairLw = new RvcTestPair(architecture)
            {
                ExpectedPayload   = te.LoadCS(00, 1, 0x1F, 2, 6),
                Coding            = te.ToBytes(0x64, 0xDD),
                ExpectedPayload32 = te.BuildSType(8, 2, 10, 9, 0x7C)
            };

            te.Test(pairLw);

            // C.SD
            var pairLd = new RvcTestPair(architecture)
            {
                ExpectedPayload   = te.LoadCS(00, 1, 0x1F, 2, 7),
                Coding            = te.ToBytes(0x64, 0xFD),
                ExpectedPayload32 = te.BuildSType(8, 3, 10, 9, 0xF8)
            };

            te.Test(pairLd);
        }