操作码助记符
汇编操作码助记符:
字节码 助记符 指令含义
0x00 nop 什么都不做。
0x01 aconst_null 将 null 推送至栈顶。
0x02 iconst_m1 将 int 型-1 推送至栈顶。
0x03 iconst_0 将 int 型 0 推送至栈顶。
0x04 iconst_1 将 int 型 1 推送至栈顶。
0x05 iconst_2 将 int 型 2 推送至栈顶。
0x06 iconst_3 将 int 型 3 推送至栈顶。
0x07 iconst_4 将 int 型 4 推送至栈顶。
0x08 iconst_5 将 int 型 5 推送至栈顶。
0x09 lconst_0 将 long 型 0 推送至栈顶。
0x0a lconst_1 将 long 型 1 推送至栈顶。
0x0b fconst_0 将 float 型 0 推送至栈顶。
0x0c fconst_1 将 float 型 1 推送至栈顶。
0x0d fconst_2 将 float 型 2 推送至栈顶。
0x0e dconst_0 将 double 型 0 推送至栈顶。
0x0f dconst_1 将 double 型 1 推送至栈顶。
0x10 bipush 将单字节的常量值(-128~127)推送至栈顶。
0x11 sipush 将一个短整型常量值(-32768~32767)推送至栈顶。
0x12 ldc 将 int,float 或 String 型常量值从常量池中推送至栈顶。
0x13 ldc_w 将 int,float 或 String 型常量值从常量池中推送至栈顶(宽索引)。 ① 译者注:“指令含义”一列在规范原文中并不存在,是为了方便读者使用,译者自己加入的。
0x14 ldc2_w 将 long 或 double 型常量值从常量池中推送至栈顶(宽索引)。
0x15 iload 将指定的 int 型局部变量推送至栈顶。
0x16 lload 将指定的 long 型局部变量推送至栈顶。
0x17 fload 将指定的 float 型局部变量推送至栈顶。
0x18 dload 将指定的 double 型局部变量推送至栈顶。
0x19 aload 将指定的引用类型局部变量推送至栈顶。
0x1a iload_0 将第一个 int 型局部变量推送至栈顶。
0x1b iload_1 将第二个 int 型局部变量推送至栈顶。
0x1c iload_2 将第三个 int 型局部变量推送至栈顶。
0x1d iload_3 将第四个 int 型局部变量推送至栈顶。
0x1e lload_0 将第一个 long 型局部变量推送至栈顶。
0x1f lload_1 将第二个 long 型局部变量推送至栈顶。
0x20 lload_2 将第三个 long 型局部变量推送至栈顶。
0x21 lload_3 将第四个 long 型局部变量推送至栈顶。
0x22 fload_0 将第一个 float 型局部变量推送至栈顶。
0x23 fload_1 将第二个 float 型局部变量推送至栈顶。
0x24 fload_2 将第三个 float 型局部变量推送至栈顶
0x25 fload_3 将第四个 float 型局部变量推送至栈顶。
0x26 dload_0 将第一个 double 型局部变量推送至栈顶。
0x27 dload_1 将第二个 double 型局部变量推送至栈顶。
0x28 dload_2 将第三个 double 型局部变量推送至栈顶。
0x29 dload_3 将第四个 double 型局部变量推送至栈顶。
0x2a aload_0 将第一个引用类型局部变量推送至栈顶。
0x2b aload_1