pctype.cpp
来自「mini mips 小型mips软件」· C++ 代码 · 共 31 行
CPP
31 行
#include "StdAfx.h"
#include "PCType.h"
void PCType::Clear(){
PC = 0x00400000;
nPC = PC + 4;
}
PCType::PCType(void)
{
Clear();
}
unsigned PCType::GetPC(){
return PC;
}
void PCType::advance_pc(int offset){
PC = nPC;
nPC += offset;
}
void PCType::Jump(int target){
PC = nPC;
nPC = (PC & 0xf0000000) | (target << 2);
}
void PCType::Jump(RegisterType Register){
PC = nPC;
nPC = Register.UIntV;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?