1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <title>iget<kind></title>
7 <link rel=stylesheet href="opcode.css">
12 <h1>iget<kind></h1>
17 Perform the identified object instance field operation with the identified
18 field, loading or storing into the value register.
21 Note: These opcodes are reasonable candidates for static linking, altering the
22 field argument to be a more direct offset.
27 <table class="instruc">
30 <th>Op & Format</th>
31 <th>Mnemonic / Syntax</th>
38 <td>i<i>instanceop</i> vA, vB, field@CCCC<br/>
47 <td><code>A:</code> source value register or pair; (4 bits)<br/>
48 <code>B:</code> object register (4 bits)<br/>
49 <code>C:</code> instance field reference index (16 bits)</td>
58 A and B must be valid register indices in the current stack frame.
61 For the -wide variant, also A+1 must be a valid register index in the
65 Register vB must contain an object reference.
68 C must be a valid index into the field reference pool.
71 The field must be an instance field. The type of the field denoted by C must
72 match the variant of the instruction.
75 For the -object variant, the instance referenced by register vA must be
76 assignment-compatible to the type of the field.
84 For all but the -wide variant, the value of register vA is move into the
85 field, that is, <object>.<field>'=vA.
88 For the -wide variant, the registers vA and v(A+1) are moved into the
92 <object>.<field>' = vA << 0x20 | v(A+1)
102 NullPointerException if vB=null.
105 IllegalAccessException if <object>.<field> is not visible from
106 the current context according to the usual visibility and access rules of
107 the Java programming language, or final.