retf / retq in 64 bit mode

SMarF at gmx.de SMarF at gmx.de
Wed Mar 1 08:19:02 PST 2006


Hi there,

fortunately not many peoplpe will use far-ret in 64-bit mode, but I tried
and failed. The mnemonic
  retq
produces no opcode, and retf results in
  0xCB
missing the prefix 0x48 to code
  0x48 0xCB
which is produced for example by fasm. I've tested some hours with qEmu and
a real AMD64, the difference is the location of CS and the amount of "pop"ed
values. Fasm also produces 0xC3 instead of 0xCB, but I don't know which one
is correct.

Thank you again for this great and free :) assembler!
Stefan

-- 
Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer


More information about the yasm-devel mailing list