GNIDA.mediana.tq_A C# (CSharp) Method

tq_A() public static method

public static tq_A ( long origin_offset, long offset, INSTRUCTION &instr, int op_index, OPERAND_SIZE opsize, INTERNAL_DATA idata, DISMODE mode ) : UInt32
origin_offset long
offset long
instr INSTRUCTION
op_index int
opsize OPERAND_SIZE
idata INTERNAL_DATA
mode DISMODE
return UInt32
        public static UInt32 tq_A(long origin_offset, long offset, ref INSTRUCTION instr, int op_index, OPERAND_SIZE opsize, INTERNAL_DATA idata, DISMODE mode)
        {
            instr.ops[op_index].flags |= (byte)OP_TYPE.OPERAND_TYPE_DIR;
            instr.ops[op_index].size = (ushort)opsize.size;
            instr.ops[op_index].value.far_addr.offset = (byte)(offset - origin_offset);
            //instr.ops[op_index].value.far_addr.far_addr_ab = assembly.Image.ReadBytes(offset, instr.ops[op_index].size);
            byte[] bt = assembly.Image.ReadBytes(offset, instr.ops[op_index].size);
            instr.ops[op_index].value.far_addr.far_addr48.Val = 0;
            foreach (byte bb in bt.Reverse())
            {
            instr.ops[op_index].value.far_addr.far_addr48.Val <<= 8;
            instr.ops[op_index].value.far_addr.far_addr48.Val += bb;
            }
            return instr.ops[op_index].size;
        }