iset.cpp
来自「编译原理的作业 编译器」· C++ 代码 · 共 26 行
CPP
26 行
#include "iset.h"
#define OPDEF(code, name, msb, lsb) name,
const char* opList[] =
{
#include "OPCODE.h"
};
#undef OPDEF
#define OPDEF(code, name, msb, lsb) #code,
const char* asmop[] =
{
#include "OPCODE.h"
};
#undef OPDEF
#define OPDEF(code, name, msb, lsb) lsb,
const int opCode[] =
{
#include "OPCODE.h"
};
#undef OPDEF