#ifndef __IZ80_H__ #define __IZ80_H__ #include "GenericAccess/GenericAccess.pkg" class IZ80 :public virtual IGenericAccess { public: // Enumerations enum class IZ80DataSource; public: // Interface version functions static inline unsigned int ThisIZ80Version() { return 1; } virtual unsigned int GetIZ80Version() const = 0; // Register functions inline unsigned int GetA() const; inline void SetA(unsigned int data); inline unsigned int GetF() const; inline void SetF(unsigned int data); inline unsigned int GetB() const; inline void SetB(unsigned int data); inline unsigned int GetC() const; inline void SetC(unsigned int data); inline unsigned int GetD() const; inline void SetD(unsigned int data); inline unsigned int GetE() const; inline void SetE(unsigned int data); inline unsigned int GetH() const; inline void SetH(unsigned int data); inline unsigned int GetL() const; inline void SetL(unsigned int data); inline unsigned int GetAF() const; inline void SetAF(unsigned int data); inline unsigned int GetBC() const; inline void SetBC(unsigned int data); inline unsigned int GetDE() const; inline void SetDE(unsigned int data); inline unsigned int GetHL() const; inline void SetHL(unsigned int data); inline unsigned int GetA2() const; inline void SetA2(unsigned int data); inline unsigned int GetF2() const; inline void SetF2(unsigned int data); inline unsigned int GetB2() const; inline void SetB2(unsigned int data); inline unsigned int GetC2() const; inline void SetC2(unsigned int data); inline unsigned int GetD2() const; inline void SetD2(unsigned int data); inline unsigned int GetE2() const; inline void SetE2(unsigned int data); inline unsigned int GetH2() const; inline void SetH2(unsigned int data); inline unsigned int GetL2() const; inline void SetL2(unsigned int data); inline unsigned int GetAF2() const; inline void SetAF2(unsigned int data); inline unsigned int GetBC2() const; inline void SetBC2(unsigned int data); inline unsigned int GetDE2() const; inline void SetDE2(unsigned int data); inline unsigned int GetHL2() const; inline void SetHL2(unsigned int data); inline unsigned int GetIXHigh() const; inline void SetIXHigh(unsigned int data); inline unsigned int GetIXLow() const; inline void SetIXLow(unsigned int data); inline unsigned int GetIYHigh() const; inline void SetIYHigh(unsigned int data); inline unsigned int GetIYLow() const; inline void SetIYLow(unsigned int data); inline unsigned int GetI() const; inline void SetI(unsigned int data); inline unsigned int GetR() const; inline void SetR(unsigned int data); inline unsigned int GetIX() const; inline void SetIX(unsigned int data); inline unsigned int GetIY() const; inline void SetIY(unsigned int data); inline unsigned int GetSP() const; inline void SetSP(unsigned int data); inline unsigned int GetPC() const; inline void SetPC(unsigned int data); // Interrupt register functions inline unsigned int GetInterruptMode() const; inline void SetInterruptMode(unsigned int interruptMode); inline bool GetIFF1() const; inline void SetIFF1(bool state); inline bool GetIFF2() const; inline void SetIFF2(bool state); // Flag functions inline bool GetFlagS() const; inline void SetFlagS(bool flag); inline bool GetFlagZ() const; inline void SetFlagZ(bool flag); inline bool GetFlagY() const; inline void SetFlagY(bool flag); inline bool GetFlagH() const; inline void SetFlagH(bool flag); inline bool GetFlagX() const; inline void SetFlagX(bool flag); inline bool GetFlagPV() const; inline void SetFlagPV(bool flag); inline bool GetFlagN() const; inline void SetFlagN(bool flag); inline bool GetFlagC() const; inline void SetFlagC(bool flag); }; #include "IZ80.inl" #endif