1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <title>sget<kind></title>
7 <link rel=stylesheet href="opcode.css">
12 <h1>sget<kind></h1>
17 Perform the identified object static field operation with the identified static
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>s<i>staticop</i> vAA, field@BBBB<br/>
47 <td><code>A:</code> dest value register or pair; (8 bits)<br/>
48 <code>B:</code> static field reference index (16 bits)</td>
57 A must be a valid register index in the current stackframe.
60 For the -wide variant, also A+1 must be a valid register index in the
64 B must be a valid index into the field reference pool.
67 The field denoted by B must be static. The type of the field denoted by B
68 must match the variant of the instruction.
76 The value of the given instance field is read from the given object and
77 moved into the given register vA, that is, vA'=<class>.<field>.
80 If v(A-1) is the lower half of a register pair, v(A-1)' becomes undefined.
83 For all but the -wide variant, if v(A+1) is the upper half of a register
84 pair, v(A+1)' becomes undefined.
87 For the -wide variant, if v(A+2) is the upper half of a register pair,
88 v(A+2)' becomes undefined.
96 NullPointerException if object is null.
99 IllegalAccessException if <object>.<field> is not visible from
100 the current context according to the usual visibility and access rules of
101 the Java programming language.