iset.c
来自「编译原理的作业 编译器」· C语言 代码 · 共 25 行
C
25 行
#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