mirror of
https://github.com/libretro/Play-.git
synced 2025-01-10 18:42:53 +00:00
99722fafd0
git-svn-id: http://svn.purei.org/purei/trunk@235 b36208d7-6611-0410-8bec-b1987f11c4a2
47 lines
810 B
C++
47 lines
810 B
C++
#ifndef _INTC_H_
|
|
#define _INTC_H_
|
|
|
|
#include "Types.h"
|
|
#include "DMAC.h"
|
|
#include "zip/ZipArchiveWriter.h"
|
|
#include "zip/ZipArchiveReader.h"
|
|
|
|
class CINTC
|
|
{
|
|
public:
|
|
enum REGISTER
|
|
{
|
|
INTC_STAT = 0x1000F000,
|
|
INTC_MASK = 0x1000F010,
|
|
};
|
|
|
|
enum LINES
|
|
{
|
|
INTC_LINE_DMAC = 1,
|
|
INTC_LINE_VBLANK_START = 2,
|
|
INTC_LINE_VBLANK_END = 3,
|
|
INTC_LINE_TIMER2 = 11,
|
|
};
|
|
|
|
CINTC(CDMAC&);
|
|
virtual ~CINTC();
|
|
|
|
void Reset();
|
|
bool IsInterruptPending();
|
|
|
|
uint32 GetRegister(uint32);
|
|
void SetRegister(uint32, uint32);
|
|
|
|
void AssertLine(uint32);
|
|
|
|
void LoadState(CZipArchiveReader&);
|
|
void SaveState(CZipArchiveWriter&);
|
|
|
|
private:
|
|
uint32 m_INTC_STAT;
|
|
uint32 m_INTC_MASK;
|
|
CDMAC& m_dmac;
|
|
};
|
|
|
|
#endif
|