Lines Matching refs:op
38 opr_cast(struct ud* u, struct ud_operand* op) in opr_cast() argument
40 switch(op->size) { in opr_cast()
52 gen_operand(struct ud* u, struct ud_operand* op) in gen_operand() argument
54 switch(op->type) { in gen_operand()
56 ud_asmprintf(u, "$0x%x", op->lval.udword); in gen_operand()
60 ud_asmprintf(u, "%%%s", ud_reg_tab[op->base - UD_R_AL]); in gen_operand()
65 opr_cast(u, op); in gen_operand()
70 if (op->offset != 0) { in gen_operand()
71 ud_syn_print_mem_disp(u, op, 0); in gen_operand()
73 if (op->base) { in gen_operand()
74 ud_asmprintf(u, "(%%%s", ud_reg_tab[op->base - UD_R_AL]); in gen_operand()
76 if (op->index) { in gen_operand()
77 if (op->base) { in gen_operand()
82 ud_asmprintf(u, "%%%s", ud_reg_tab[op->index - UD_R_AL]); in gen_operand()
84 if (op->scale) { in gen_operand()
85 ud_asmprintf(u, ",%d", op->scale); in gen_operand()
87 if (op->base || op->index) { in gen_operand()
94 ud_syn_print_imm(u, op); in gen_operand()
98 ud_syn_print_addr(u, ud_syn_rel_target(u, op)); in gen_operand()
102 switch (op->size) { in gen_operand()
104 ud_asmprintf(u, "$0x%x, $0x%x", op->lval.ptr.seg, in gen_operand()
105 op->lval.ptr.off & 0xFFFF); in gen_operand()
108 ud_asmprintf(u, "$0x%x, $0x%x", op->lval.ptr.seg, in gen_operand()
109 op->lval.ptr.off); in gen_operand()