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
 
unsigned getAF () const
 
unsigned getBC () const
 
unsigned getDE () const
 
unsigned getHL () const
 
unsigned getAF2 () const
 
unsigned getBC2 () const
 
unsigned getDE2 () const
 
unsigned getHL2 () const
 
unsigned getIX () const
 
unsigned getIY () const
 
unsigned getPC () const
 
unsigned 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 (unsigned x)
 
void setBC (unsigned x)
 
void setDE (unsigned x)
 
void setHL (unsigned x)
 
void setAF2 (unsigned x)
 
void setBC2 (unsigned x)
 
void setDE2 (unsigned x)
 
void setHL2 (unsigned x)
 
void setIX (unsigned x)
 
void setIY (unsigned x)
 
void setPC (unsigned x)
 
void setSP (unsigned 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

◆ 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.

◆ getA2()

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

Definition at line 31 of file CPURegs.hh.

◆ getAF()

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

Definition at line 48 of file CPURegs.hh.

◆ getAF2()

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

Definition at line 52 of file CPURegs.hh.

◆ getB()

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

Definition at line 25 of file CPURegs.hh.

◆ getB2()

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

Definition at line 33 of file CPURegs.hh.

◆ getBC()

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

Definition at line 49 of file CPURegs.hh.

◆ getBC2()

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

Definition at line 53 of file CPURegs.hh.

◆ getC()

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

Definition at line 26 of file CPURegs.hh.

◆ getC2()

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

Definition at line 34 of file CPURegs.hh.

◆ getD()

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

Definition at line 27 of file CPURegs.hh.

◆ getD2()

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

Definition at line 35 of file CPURegs.hh.

◆ getDE()

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

Definition at line 50 of file CPURegs.hh.

◆ getDE2()

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

Definition at line 54 of file CPURegs.hh.

◆ getE()

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

Definition at line 28 of file CPURegs.hh.

◆ getE2()

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

Definition at line 36 of file CPURegs.hh.

◆ getF()

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

Definition at line 24 of file CPURegs.hh.

◆ getF2()

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

Definition at line 32 of file CPURegs.hh.

◆ getH()

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

Definition at line 29 of file CPURegs.hh.

◆ getH2()

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

Definition at line 37 of file CPURegs.hh.

◆ getHALT()

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

Definition at line 66 of file CPURegs.hh.

◆ getHL()

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

Definition at line 51 of file CPURegs.hh.

◆ getHL2()

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

Definition at line 55 of file CPURegs.hh.

◆ 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()

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

Definition at line 56 of file CPURegs.hh.

◆ getIXh()

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

Definition at line 39 of file CPURegs.hh.

◆ getIXl()

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

Definition at line 40 of file CPURegs.hh.

◆ getIY()

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

Definition at line 57 of file CPURegs.hh.

◆ getIYh()

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

Definition at line 41 of file CPURegs.hh.

◆ getIYl()

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

Definition at line 42 of file CPURegs.hh.

◆ getL()

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

Definition at line 30 of file CPURegs.hh.

◆ getL2()

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

Definition at line 38 of file CPURegs.hh.

◆ getPC()

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

Definition at line 58 of file CPURegs.hh.

◆ getPCh()

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

Definition at line 43 of file CPURegs.hh.

◆ getPCl()

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

Definition at line 44 of file CPURegs.hh.

◆ getR()

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

Definition at line 63 of file CPURegs.hh.

Referenced by serialize().

◆ getSP()

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

Definition at line 59 of file CPURegs.hh.

◆ getSPh()

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

Definition at line 45 of file CPURegs.hh.

◆ getSPl()

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

Definition at line 46 of file CPURegs.hh.

◆ incR()

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

Definition at line 114 of file CPURegs.hh.

Referenced by openmsx::R800TYPE::R800RefreshSlow().

◆ 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.

◆ setA2()

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

Definition at line 76 of file CPURegs.hh.

◆ setAF()

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

Definition at line 93 of file CPURegs.hh.

◆ setAF2()

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

Definition at line 97 of file CPURegs.hh.

◆ setB()

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

Definition at line 70 of file CPURegs.hh.

◆ setB2()

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

Definition at line 78 of file CPURegs.hh.

◆ setBC()

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

Definition at line 94 of file CPURegs.hh.

◆ setBC2()

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

Definition at line 98 of file CPURegs.hh.

◆ setC()

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

Definition at line 71 of file CPURegs.hh.

◆ setC2()

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

Definition at line 79 of file CPURegs.hh.

◆ 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.

◆ setD2()

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

Definition at line 80 of file CPURegs.hh.

◆ setDE()

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

Definition at line 95 of file CPURegs.hh.

◆ setDE2()

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

Definition at line 99 of file CPURegs.hh.

◆ setE()

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

Definition at line 73 of file CPURegs.hh.

◆ setE2()

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

Definition at line 81 of file CPURegs.hh.

◆ 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.

◆ setF2()

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

Definition at line 77 of file CPURegs.hh.

◆ setH()

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

Definition at line 74 of file CPURegs.hh.

◆ setH2()

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

Definition at line 82 of file CPURegs.hh.

◆ setHALT()

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

Definition at line 111 of file CPURegs.hh.

◆ setHL()

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

Definition at line 96 of file CPURegs.hh.

◆ setHL2()

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

Definition at line 100 of file CPURegs.hh.

◆ 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 ( unsigned  x)
inline

Definition at line 101 of file CPURegs.hh.

◆ setIXh()

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

Definition at line 84 of file CPURegs.hh.

◆ setIXl()

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

Definition at line 85 of file CPURegs.hh.

◆ setIY()

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

Definition at line 102 of file CPURegs.hh.

◆ setIYh()

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

Definition at line 86 of file CPURegs.hh.

◆ setIYl()

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

Definition at line 87 of file CPURegs.hh.

◆ setL()

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

Definition at line 75 of file CPURegs.hh.

◆ setL2()

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

Definition at line 83 of file CPURegs.hh.

◆ setPC()

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

Definition at line 103 of file CPURegs.hh.

◆ setPCh()

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

Definition at line 88 of file CPURegs.hh.

◆ setPCl()

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

Definition at line 89 of file CPURegs.hh.

◆ setR()

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

Definition at line 108 of file CPURegs.hh.

Referenced by serialize().

◆ setSP()

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

Definition at line 104 of file CPURegs.hh.

◆ setSPh()

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

Definition at line 90 of file CPURegs.hh.

◆ setSPl()

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

Definition at line 91 of file CPURegs.hh.


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