LAR
Usage: LAR dest,src Modifies flags: ZF
The high byte of the of the 'dest' register is overwritten by the value of the access rights byte and the low order byte is zeroed depending on the selection in the 'src' operand. The ZF flag is set if the load operation is successful.
Load Access Rights
LAR reg16,r/m16 ; o16 0F 02 /r [286,PRIV]
LAR reg32,r/m32 ; o32 0F 02 /r [286,PRIV]
LAR takes the segment selector specified by its source (second) operand, finds the corresponding segment descriptor in the GDT or LDT, and loads the access-rights byte of the descriptor into its destination (first) operand.
Example:
lar eax Label