You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 一共提供了18个计算指令集,目的是为了理解原理。
public static final short IADD = 1; // 两个int加
public static final short ISUB = 2; // 剪发
public static final short IMUL = 3; // 乘法
public static final short ILT = 4; // int大小
public static final short IEQ = 5; // int是否相对
public static final short BR = 6; // 方法指令PC地址跳转
public static final short BRT = 7; // false的时候跳转
public static final short BRF = 8; // true的时候跳转
public static final short ICONST = 9; // 常量定义入栈
public static final short LOAD = 10; // 从本地方法区上下文加载数据
public static final short GLOAD = 11; // 从全局内存取数(可以理解为java堆)
public static final short STORE = 12; // 保存
public static final short GSTORE = 13; // 保存
public static final short PRINT = 14; // 打印栈顶元素并出栈
public static final short POP = 15; // 出栈一个
public static final short CALL = 16; // 方法调用,PC变更
public static final short RET = 17; // 返回父方法区上下文的指令PC位置
public static final short HALT = 18; //结束运行