📄 pctype.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -