加载和存储指令
加载和存储指令用于将数据在栈桢中的局部变量表和操作数栈之间来回传输。
将一个局部变量架加载到操作数栈(Tload
)
iload、iload_<n>、lload、lload_<n>、fload、fload_<n>、dload、dload_<n>、aload、aload_<n>
将一个数值从操作数栈存储到局部变量表(Tstore
)
istore、istore_<n>、lstore、lstore_<n>、fstore、fstore_<n>、dstore、dstore_<n>、astore、astore_<n>
将一个常量加载到操作数栈
bipush、sipush、ldc、ldc_w、ldc2_w、aconst_null、iconst_m1、iconst_<i>、lconst_<l>、fconst_<f>、dconst_<d>
扩从局部变量表的访问索引的指令
wide
<n>
代表一组指令,如iload_<n>
表示iload_<0>
、iload_<1>
、iload_<2>
、iload_<3>
。