📄 monitor.java~1~
字号:
/**
* Created by IntelliJ IDEA. User: yellowicq Date: 2004-4-27 Time: 14:50:07
* To change this template use File | Settings | File Templates.
*/
public class MONITOR {
public MONITOR() { }
public String Name() {
return "monitor";
}
public int NumArguments() {
return 0;
}
public String ToString() {
return Name();
}
public void SI(AbstractMachineState state) {
Tracer.debug("SI monitor");
VM_DataArea VM_da = (VM_DataArea)state.getDataArea();
VM_Program VM_prog = (VM_Program)state.getProgram();
// Implementation of allocate semantics
Tracer.debug("********************************");
Tracer.debug("Current CP:" + VM_prog.CP);
Tracer.debug("Current CP_GLOBAL:" + VM_da.regs.getCP_GLOBAL());
VM_da.orStack.traceOrStack();
Tracer.debug("********************************");
//move the cp pointer to next
synchronized(this) {
VM_prog.Next();
VM_da.regs.setCP_GLOBAL(VM_prog.Consult_CP());
}
}
public void Process(String[] args) {
// Proces the text representation of the instruction
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -