GETFIELD         Get record field value                             Extension

GETFIELD field_name destination_reg, source_r/m

Generates code that retrieves the value of a field found in the same
source register or memory address, and sets the destination to that
value.

GETFIELD retrieves the value of a field found in the source register
or memory address, and set the pertinent portion of the destination
register to that value. This instruction affects no other registers
than the operating register and the processor flags.

To accomplish its function, GETFIELD uses a series of MOV, XCHG, ROL,
and ROR instructions. If you're using GETFIELD when your source and
target registers are the same, the instruction will not generate the
non-functional 'MOV target, source'.


Example: RECORD foo r0:1,r1:4,r2:3,r3:1
getfield r1 bl,ax ; (bx changed)