From: Avi K. <av...@qu...> - 2008-04-29 23:22:24
|
Laurent Vivier wrote: >> Why dst.val is not 0x53e10 ? >> > > I can answer myself to this one: > > emulate_2op_SrcB("sal", c->src, c->dst, ctxt->eflags); > > does nothing if dst.byte == 0 > > So next question is the good question... > > >> Why dst.byte is 0 ? >> >> Because dst.bytes is only set if dst.type == OP_MEM, or ad hoc in the instruction itself. Better to set it unconditionally (and adjust in the instruction if necessary). -- Any sufficiently difficult bug is indistinguishable from a feature. |