16 bool m_Z, m_S, m_C, m_O;
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*);
37 CDat getCurPC() const;
38 CDat getNextPC() const;
41 CDat getFlags() const;
43 /* will only change zero and sign */
44 void updateFlags(CDat);
45 /* will change all flags */
46 void updateFlags(CDatd, CDat, CDat);
47 /* will change all flags */
48 void updateFlags(bool z, bool o, bool c, bool s);
49 /* will change carry */
50 void updateCarry(bool c);
54 bool conditionMet(short);
57 void setStack(const int);