18 bool m_Z, m_S, m_C, m_O;
20 CDat m_pc, m_pc_next, m_perf;
21 CMem<CDat> m_reg, m_ram;
22 CPMem<Iinstr*> m_prog;
27 void registerExtension() {};
30 CDat getRegister(const int) const;
31 void setRegister(const int, CDat);
33 CDat getRAM(const int) const;
34 void setRAM(const int, CDat);
36 Iinstr* getProg(const int) const;
37 void setProg(const int, Iinstr*);
42 void incPerfBy(short);
44 CDat getCurPC() const;
45 CDat getNextPC() const;
48 CDat getFlags() const;
50 /* will only change zero and sign */
51 void updateFlags(CDat);
52 /* will change all flags */
53 void updateFlags(CDatd, CDat, CDat);
54 /* will change all flags */
55 void updateFlags(bool z, bool o, bool c, bool s);
56 /* will change carry */
57 void updateCarry(bool c);
61 bool conditionMet(short);
64 void setStack(const int);