13.07.2015 Views

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AMD64 Technology 24594 Rev. 3.10 February 2005VERWVerify Segment for WritesVerifies whether a data segment specified by the segment selector in the 16-bitregister or memory oper<strong>and</strong> is writable from the current privilege level. The zero flag(ZF) is set to 1 if the specified segment is writable. Otherwise, ZF is cleared.A segment is writable if all of the following apply:• the selector is not a null selector.• the descriptor is within the GDT or LDT limit.• the segment is a writable data segment.• the descriptor DPL is greater than or equal to both the CPL <strong>and</strong> RPL.The processor does not recognize the VERW instruction in real or virtual-8086 mode.Mnemonic Opcode DescriptionVERW reg/mem16 0F 00 /5 Set the zero flag (ZF) to 1 if the segment selected canbe written.Related <strong>Instructions</strong>ARPL, LAR, LSL, VERRrFLAGS AffectedID VIP VIF AC VM RF NT IOPL OF DF IF TF SF ZF AF PF CF21 20 19 18 17 16 14 13–12 11 10 9 8 7 6 4 2 0Note: Bits 31–22, 15, 5, 3, <strong>and</strong> 1 are reserved. A flag set to one or cleared to zero is M (modified). Unaffected flags are blank. Undefinedflags are U.M370 VERW

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!