#include "ccolor.h"
class Iinstr;
+class Iext;
+#include "iext.hpp"
+#include <boost/regex.hpp>
#include "Iinstr.hpp"
CMem<CDat> m_reg, m_ram;
CPMem<Iinstr*> m_prog;
+ vector<Iext*> m_exts;
+
CDat m_stack;
+ static const int EXT_MODEL_OFFSET = 0x2000;
+
public:
void registerExtension() {};
+ void applyToExtensions(const vector<string>& in);
void tick();
CDat getRegister(const int) const;
Iinstr* getProg(const int) const;
void setProg(const int, Iinstr*);
+ void registerExtension(Iext*);
+
CDat getPerf() const;
void setPerf(CDat);
void incPerf();
int getStack() const;
void setStack(const int);
+ string colorifyInstr(string instr);
+
CCpu(int,int,int);
};