PcodeInstr.h 514 bytes
#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;