Re: Confused by Intel's Opcode docs



[jongware] schrieb:
"Always" is the default, but can be overriden to 'the other' by prefixing
66h (Segment Override Prefix).
The same goes for word/dword register and mem operands (mov ax,1 vs. mov
eax,1). The prefix variants are *always* slower than the non-prefix.

Thanks, that was the missing info, I guess. Though of course with AT&T
syntax, one manually indicates the prefix (movl and stuff). Still, that
using another than the native type would be slower is only to be
expected.

Thanks for all the great info!

Cheers,
-- M. Uli Kusterer
http://www.zathras.de

.



Relevant Pages

  • disassembler prefix-byte check -- wanting comments good and bad
    ... check the description down at the very bottom of the snippet if things get ... prefix bytes... ... mov cl,al ... jmp next_prefix ...
    (comp.lang.asm.x86)
  • disassembler prefix-byte check -- wanting comments good and bad
    ... check the description down at the very bottom of the snippet if things get ... prefix bytes... ... mov cl,al ... jmp next_prefix ...
    (alt.lang.asm)
  • Re: mov seg, reg/mov reg, seg and size prefix
    ... size prefix byte, for 16-bit only instructions, is all over the map. ... mov ds, ax ... assembler that *was* doing it, at that time. ...
    (comp.lang.asm.x86)
  • Re: mov seg, reg/mov reg, seg and size prefix
    ... size prefix byte, for 16-bit only instructions, is all over the map. ... mov ds, ax ... But it seems "wrong" to me for an assembler to emit *any* unneeded byte. ...
    (comp.lang.asm.x86)
  • Re: How to do atomic read?
    ... For example, if InterlockedExchange() relied upon XCHG instruction, ... it name suggests, it would not have to use LOCK prefix, because LOCK is ... does not apply to MOV instruction, i.e. to reads and writes - if you ... When it comes to atomicity of reads and writes, ...
    (microsoft.public.development.device.drivers)