openMSX
Public Member Functions | List of all members
openmsx::CPURegs Class Reference

#include <CPURegs.hh>

Inheritance diagram for openmsx::CPURegs:
Inheritance graph
[legend]

Public Member Functions

 CPURegs (bool r800)
 
byte getA () const
 
byte getF () const
 
byte getB () const
 
byte getC () const
 
byte getD () const
 
byte getE () const
 
byte getH () const
 
byte getL () const
 
byte getA2 () const
 
byte getF2 () const
 
byte getB2 () const
 
byte getC2 () const
 
byte getD2 () const
 
byte getE2 () const
 
byte getH2 () const
 
byte getL2 () const
 
byte getIXh () const
 
byte getIXl () const
 
byte getIYh () const
 
byte getIYl () const
 
byte getPCh () const
 
byte getPCl () const
 
byte getSPh () const
 
byte getSPl () const
 
word getAF () const
 
word getBC () const
 
word getDE () const
 
word getHL () const
 
word getAF2 () const
 
word getBC2 () const
 
word getDE2 () const
 
word getHL2 () const
 
word getIX () const
 
word getIY () const
 
word getPC () const
 
word getSP () const
 
byte getIM () const
 
byte getI () const
 
byte getR () const
 
bool getIFF1 () const
 
bool getIFF2 () const
 
byte getHALT () const
 
void setA (byte x)
 
void setF (byte x)
 
void setB (byte x)
 
void setC (byte x)
 
void setD (byte x)
 
void setE (byte x)
 
void setH (byte x)
 
void setL (byte x)
 
void setA2 (byte x)
 
void setF2 (byte x)
 
void setB2 (byte x)
 
void setC2 (byte x)
 
void setD2 (byte x)
 
void setE2 (byte x)
 
void setH2 (byte x)
 
void setL2 (byte x)
 
void setIXh (byte x)
 
void setIXl (byte x)
 
void setIYh (byte x)
 
void setIYl (byte x)
 
void setPCh (byte x)
 
void setPCl (byte x)
 
void setSPh (byte x)
 
void setSPl (byte x)
 
void setAF (word x)
 
void setBC (word x)
 
void setDE (word x)
 
void setHL (word x)
 
void setAF2 (word x)
 
void setBC2 (word x)
 
void setDE2 (word x)
 
void setHL2 (word x)
 
void setIX (word x)
 
void setIY (word x)
 
void setPC (word x)
 
void setSP (word x)
 
void setIM (byte x)
 
void setI (byte x)
 
void setR (byte x)
 
void setIFF1 (bool x)
 
void setIFF2 (bool x)
 
void setHALT (bool x)
 
void setExtHALT (bool x)
 
void incR (byte x)
 
void setCurrentEI ()
 
void setCurrentLDAI ()
 
void setCurrentCall ()
 
void setCurrentPopRet ()
 
bool prevWasEI () const
 
bool prevWasLDAI () const
 
bool prev2WasCall () const
 
bool prevWasPopRet () const
 
void endInstruction ()
 
void clearPrevious ()
 
void checkNoCurrentFlags () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 19 of file CPURegs.hh.

Constructor & Destructor Documentation

◆ CPURegs()

openmsx::CPURegs::CPURegs ( bool  r800)
inlineexplicit

Definition at line 22 of file CPURegs.hh.

Member Function Documentation

◆ checkNoCurrentFlags()

void openmsx::CPURegs::checkNoCurrentFlags ( ) const
inline

Definition at line 186 of file CPURegs.hh.

◆ clearPrevious()

void openmsx::CPURegs::clearPrevious ( )
inline

Definition at line 180 of file CPURegs.hh.

Referenced by serialize().

◆ endInstruction()

void openmsx::CPURegs::endInstruction ( )
inline

Definition at line 175 of file CPURegs.hh.

Referenced by serialize().

◆ getA()

byte openmsx::CPURegs::getA ( ) const
inline

Definition at line 23 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getA2()

byte openmsx::CPURegs::getA2 ( ) const
inline

Definition at line 31 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getAF()

word openmsx::CPURegs::getAF ( ) const
inline

Definition at line 48 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getAF2()

word openmsx::CPURegs::getAF2 ( ) const
inline

Definition at line 52 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getB()

byte openmsx::CPURegs::getB ( ) const
inline

Definition at line 25 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getB2()

byte openmsx::CPURegs::getB2 ( ) const
inline

Definition at line 33 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getBC()

word openmsx::CPURegs::getBC ( ) const
inline

Definition at line 49 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getBC2()

word openmsx::CPURegs::getBC2 ( ) const
inline

Definition at line 53 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getC()

byte openmsx::CPURegs::getC ( ) const
inline

Definition at line 26 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getC2()

byte openmsx::CPURegs::getC2 ( ) const
inline

Definition at line 34 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getD()

byte openmsx::CPURegs::getD ( ) const
inline

Definition at line 27 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getD2()

byte openmsx::CPURegs::getD2 ( ) const
inline

Definition at line 35 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getDE()

word openmsx::CPURegs::getDE ( ) const
inline

Definition at line 50 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getDE2()

word openmsx::CPURegs::getDE2 ( ) const
inline

Definition at line 54 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getE()

byte openmsx::CPURegs::getE ( ) const
inline

Definition at line 28 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getE2()

byte openmsx::CPURegs::getE2 ( ) const
inline

Definition at line 36 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getF()

byte openmsx::CPURegs::getF ( ) const
inline

Definition at line 24 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getF2()

byte openmsx::CPURegs::getF2 ( ) const
inline

Definition at line 32 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getH()

byte openmsx::CPURegs::getH ( ) const
inline

Definition at line 29 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getH2()

byte openmsx::CPURegs::getH2 ( ) const
inline

Definition at line 37 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getHALT()

byte openmsx::CPURegs::getHALT ( ) const
inline

Definition at line 66 of file CPURegs.hh.

◆ getHL()

word openmsx::CPURegs::getHL ( ) const
inline

Definition at line 51 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getHL2()

word openmsx::CPURegs::getHL2 ( ) const
inline

Definition at line 55 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getI()

byte openmsx::CPURegs::getI ( ) const
inline

Definition at line 62 of file CPURegs.hh.

◆ getIFF1()

bool openmsx::CPURegs::getIFF1 ( ) const
inline

Definition at line 64 of file CPURegs.hh.

◆ getIFF2()

bool openmsx::CPURegs::getIFF2 ( ) const
inline

Definition at line 65 of file CPURegs.hh.

◆ getIM()

byte openmsx::CPURegs::getIM ( ) const
inline

Definition at line 61 of file CPURegs.hh.

◆ getIX()

word openmsx::CPURegs::getIX ( ) const
inline

Definition at line 56 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getIXh()

byte openmsx::CPURegs::getIXh ( ) const
inline

Definition at line 39 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getIXl()

byte openmsx::CPURegs::getIXl ( ) const
inline

Definition at line 40 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getIY()

word openmsx::CPURegs::getIY ( ) const
inline

Definition at line 57 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getIYh()

byte openmsx::CPURegs::getIYh ( ) const
inline

Definition at line 41 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getIYl()

byte openmsx::CPURegs::getIYl ( ) const
inline

Definition at line 42 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getL()

byte openmsx::CPURegs::getL ( ) const
inline

Definition at line 30 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getL2()

byte openmsx::CPURegs::getL2 ( ) const
inline

Definition at line 38 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getPC()

word openmsx::CPURegs::getPC ( ) const
inline

Definition at line 58 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getPCh()

byte openmsx::CPURegs::getPCh ( ) const
inline

Definition at line 43 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getPCl()

byte openmsx::CPURegs::getPCl ( ) const
inline

Definition at line 44 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getR()

byte openmsx::CPURegs::getR ( ) const
inline

Definition at line 63 of file CPURegs.hh.

Referenced by serialize().

◆ getSP()

word openmsx::CPURegs::getSP ( ) const
inline

Definition at line 59 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ getSPh()

byte openmsx::CPURegs::getSPh ( ) const
inline

Definition at line 45 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ getSPl()

byte openmsx::CPURegs::getSPl ( ) const
inline

Definition at line 46 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ incR()

void openmsx::CPURegs::incR ( byte  x)
inline

Definition at line 114 of file CPURegs.hh.

◆ prev2WasCall()

bool openmsx::CPURegs::prev2WasCall ( ) const
inline

Definition at line 165 of file CPURegs.hh.

◆ prevWasEI()

bool openmsx::CPURegs::prevWasEI ( ) const
inline

Definition at line 157 of file CPURegs.hh.

◆ prevWasLDAI()

bool openmsx::CPURegs::prevWasLDAI ( ) const
inline

Definition at line 161 of file CPURegs.hh.

◆ prevWasPopRet()

bool openmsx::CPURegs::prevWasPopRet ( ) const
inline

Definition at line 169 of file CPURegs.hh.

◆ serialize()

template<typename Archive >
void openmsx::CPURegs::serialize ( Archive &  ar,
unsigned  version 
)

◆ setA()

void openmsx::CPURegs::setA ( byte  x)
inline

Definition at line 68 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setA2()

void openmsx::CPURegs::setA2 ( byte  x)
inline

Definition at line 76 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setAF()

void openmsx::CPURegs::setAF ( word  x)
inline

Definition at line 93 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setAF2()

void openmsx::CPURegs::setAF2 ( word  x)
inline

Definition at line 97 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setB()

void openmsx::CPURegs::setB ( byte  x)
inline

Definition at line 70 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setB2()

void openmsx::CPURegs::setB2 ( byte  x)
inline

Definition at line 78 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setBC()

void openmsx::CPURegs::setBC ( word  x)
inline

Definition at line 94 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setBC2()

void openmsx::CPURegs::setBC2 ( word  x)
inline

Definition at line 98 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setC()

void openmsx::CPURegs::setC ( byte  x)
inline

Definition at line 71 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setC2()

void openmsx::CPURegs::setC2 ( byte  x)
inline

Definition at line 79 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setCurrentCall()

void openmsx::CPURegs::setCurrentCall ( )
inline

Definition at line 148 of file CPURegs.hh.

◆ setCurrentEI()

void openmsx::CPURegs::setCurrentEI ( )
inline

Definition at line 140 of file CPURegs.hh.

Referenced by serialize().

◆ setCurrentLDAI()

void openmsx::CPURegs::setCurrentLDAI ( )
inline

Definition at line 144 of file CPURegs.hh.

◆ setCurrentPopRet()

void openmsx::CPURegs::setCurrentPopRet ( )
inline

Definition at line 152 of file CPURegs.hh.

◆ setD()

void openmsx::CPURegs::setD ( byte  x)
inline

Definition at line 72 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setD2()

void openmsx::CPURegs::setD2 ( byte  x)
inline

Definition at line 80 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setDE()

void openmsx::CPURegs::setDE ( word  x)
inline

Definition at line 95 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setDE2()

void openmsx::CPURegs::setDE2 ( word  x)
inline

Definition at line 99 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setE()

void openmsx::CPURegs::setE ( byte  x)
inline

Definition at line 73 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setE2()

void openmsx::CPURegs::setE2 ( byte  x)
inline

Definition at line 81 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setExtHALT()

void openmsx::CPURegs::setExtHALT ( bool  x)
inline

Definition at line 112 of file CPURegs.hh.

◆ setF()

void openmsx::CPURegs::setF ( byte  x)
inline

Definition at line 69 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setF2()

void openmsx::CPURegs::setF2 ( byte  x)
inline

Definition at line 77 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setH()

void openmsx::CPURegs::setH ( byte  x)
inline

Definition at line 74 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setH2()

void openmsx::CPURegs::setH2 ( byte  x)
inline

Definition at line 82 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setHALT()

void openmsx::CPURegs::setHALT ( bool  x)
inline

Definition at line 111 of file CPURegs.hh.

◆ setHL()

void openmsx::CPURegs::setHL ( word  x)
inline

Definition at line 96 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setHL2()

void openmsx::CPURegs::setHL2 ( word  x)
inline

Definition at line 100 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setI()

void openmsx::CPURegs::setI ( byte  x)
inline

Definition at line 107 of file CPURegs.hh.

◆ setIFF1()

void openmsx::CPURegs::setIFF1 ( bool  x)
inline

Definition at line 109 of file CPURegs.hh.

◆ setIFF2()

void openmsx::CPURegs::setIFF2 ( bool  x)
inline

Definition at line 110 of file CPURegs.hh.

◆ setIM()

void openmsx::CPURegs::setIM ( byte  x)
inline

Definition at line 106 of file CPURegs.hh.

◆ setIX()

void openmsx::CPURegs::setIX ( word  x)
inline

Definition at line 101 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setIXh()

void openmsx::CPURegs::setIXh ( byte  x)
inline

Definition at line 84 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setIXl()

void openmsx::CPURegs::setIXl ( byte  x)
inline

Definition at line 85 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setIY()

void openmsx::CPURegs::setIY ( word  x)
inline

Definition at line 102 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setIYh()

void openmsx::CPURegs::setIYh ( byte  x)
inline

Definition at line 86 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setIYl()

void openmsx::CPURegs::setIYl ( byte  x)
inline

Definition at line 87 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setL()

void openmsx::CPURegs::setL ( byte  x)
inline

Definition at line 75 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setL2()

void openmsx::CPURegs::setL2 ( byte  x)
inline

Definition at line 83 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setPC()

void openmsx::CPURegs::setPC ( word  x)
inline

Definition at line 103 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setPCh()

void openmsx::CPURegs::setPCh ( byte  x)
inline

Definition at line 88 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setPCl()

void openmsx::CPURegs::setPCl ( byte  x)
inline

Definition at line 89 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setR()

void openmsx::CPURegs::setR ( byte  x)
inline

Definition at line 108 of file CPURegs.hh.

Referenced by serialize().

◆ setSP()

void openmsx::CPURegs::setSP ( word  x)
inline

Definition at line 104 of file CPURegs.hh.

References openmsx::z80regPair::w.

◆ setSPh()

void openmsx::CPURegs::setSPh ( byte  x)
inline

Definition at line 90 of file CPURegs.hh.

References openmsx::z80regPair::b.

◆ setSPl()

void openmsx::CPURegs::setSPl ( byte  x)
inline

Definition at line 91 of file CPURegs.hh.

References openmsx::z80regPair::b.


The documentation for this class was generated from the following files: