16 bool m_Z, m_S, m_C, m_O;
18 CDat m_pc, m_pc_next, m_perf;
19 CMem<CDat> m_reg, m_ram;
20 CPMem<Iinstr*> m_prog;
25 void registerExtension() {};
28 CDat getRegister(const int) const;
29 void setRegister(const int, CDat);
31 CDat getRAM(const int) const;
32 void setRAM(const int, CDat);
34 Iinstr* getProg(const int) const;
35 void setProg(const int, Iinstr*);
40 void incPerfBy(short);
42 CDat getCurPC() const;
43 CDat getNextPC() const;
46 CDat getFlags() const;
48 /* will only change zero and sign */
49 void updateFlags(CDat);
50 /* will change all flags */
51 void updateFlags(CDatd, CDat, CDat);
52 /* will change all flags */
53 void updateFlags(bool z, bool o, bool c, bool s);
54 /* will change carry */
55 void updateCarry(bool c);
59 bool conditionMet(short);
62 void setStack(const int);