OISC_VM.MemoryController.FetchInstrucitonOperands C# (CSharp) Method

FetchInstrucitonOperands() public method

public FetchInstrucitonOperands ( long memoryLocation ) : InstructionOperands
memoryLocation long
return InstructionOperands
        public InstructionOperands FetchInstrucitonOperands(long memoryLocation)
        {
            //TODO_x64: Need to implement a bit converter that can processes 64 bit addresses.

            long operandA = BitConverter.ToInt64(_memory, (int)memoryLocation);
            long operandB = BitConverter.ToInt64(_memory, (int)memoryLocation+8);
            long operandC = BitConverter.ToInt64(_memory, (int)memoryLocation+16);

            return new InstructionOperands() { OperandA = operandA, OperandB = operandB, OperandC = operandC};
        }