textcode.h
来自「mini mips 小型mips软件」· C头文件 代码 · 共 27 行
H
27 行
#pragma once
#include <string>
#include <sstream>
#include <iomanip>
using namespace std;
struct TextCode
{
unsigned address;
unsigned binary;
string asmCode;
string GetAddress(){
return PrintNum(address);
}
string GetBinary(){
return PrintNum(binary);
}
private:
static string PrintNum(unsigned num){
ostringstream os;
os << "0x";
os << setw(8) << setfill('0') << hex << num;
return os.str();
}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?