예제 #1
0
        private static UInt32 GetSource1(UInt32 instructionData)
        {
            var query = new InstructionUtility.MaskedInstructionQuery()
            {
                InstructionData = instructionData,
                BitLength = 4,
                ShiftPosition = 20
            };

            return InstructionUtility.GetValueFromInstruction(query);
        }
예제 #2
0
        private static UInt32 GetBaseRegister(UInt32 instructionData)
        {
            var query = new InstructionUtility.MaskedInstructionQuery()
            {
                InstructionData = instructionData,
                ShiftPosition = 20,
                BitLength = 4
            };

            return InstructionUtility.GetValueFromInstruction(query);
        }
예제 #3
0
        private static UInt32 GetAddress(UInt32 instructionData)
        {
            var query = new InstructionUtility.MaskedInstructionQuery()
            {
                InstructionData = instructionData,
                ShiftPosition = 0,
                BitLength = 16
            };

            return InstructionUtility.GetValueFromInstruction(query);
        }
예제 #4
0
        internal void SetupAddress(UInt32 instructionData)
        {
            var query = new InstructionUtility.MaskedInstructionQuery()
            {
                InstructionData = instructionData,
                ShiftPosition = 0,
                BitLength = 24
            };

            Address = InstructionUtility.GetValueFromInstruction(query);
        }