12 #include <boost/regex.hpp>
19 bool m_Z, m_S, m_C, m_O;
21 CDat m_pc, m_pc_next, m_perf;
22 CMem<CDat> m_reg, m_ram;
23 CPMem<Iinstr*> m_prog;
28 void registerExtension() {};
31 CDat getRegister(const int) const;
32 void setRegister(const int, CDat);
34 CDat getRAM(const int) const;
35 void setRAM(const int, CDat);
37 Iinstr* getProg(const int) const;
38 void setProg(const int, Iinstr*);
43 void incPerfBy(short);
45 CDat getCurPC() const;
46 CDat getNextPC() const;
49 CDat getFlags() const;
51 /* will only change zero and sign */
52 void updateFlags(CDat);
53 /* will change all flags */
54 void updateFlags(CDatd, CDat, CDat);
55 /* will change all flags */
56 void updateFlags(bool z, bool o, bool c, bool s);
57 /* will change carry */
58 void updateCarry(bool c);
62 bool conditionMet(short);
65 void setStack(const int);
67 string colorifyInstr(string instr);