字节码 | 助记符 | 指令含义 |
---|---|---|
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 | 将单字节的常量值(Byte.MIN_VALUE ~ Byte.MAX_VALUE,即 -128~127)推送至栈顶 |
0x11 | sipush | 将短整型的常量值(Short.MIN_VALUE ~ Short.MAX_VALUE,即 -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</ |
字节码指令表(查找使用)
最新推荐文章于 2023-08-05 17:06:53 发布