-
不要指望我们队 authored7b966d96
Forked from
CSC / CSC-Compiler / Compiler2023
#pragma once
#include "headers.h"
enum class PcodeOp {
LIT,
OPR,
LOD,
STO,
CAL,
INT,
JMP,
JTP,
JPC,
LODS,
STOS,
LA,
PRT,
BLO,
BLE,
JPCAND,
};
class PcodeInstr {
public:
PcodeInstr();
PcodeInstr(PcodeOp op, string level, string address);
string toString();
PcodeOp getOp();
string getAddress();
string getLevel();
void setAddress(string addr);
private:
PcodeOp op;
string level;
string address;
};