mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-05-20 13:07:54 -04:00
5ae36cc2c7
Added folder for C++ code. Added shaders, user manual, wxwidget files and VS files
21 lines
732 B
C++
21 lines
732 B
C++
#include "stdafx.h"
|
|
#pragma once
|
|
class mapper
|
|
{
|
|
public:
|
|
mapper(void);
|
|
~mapper(void);
|
|
|
|
virtual void runCatchUp(unsigned int cycle) = 0;
|
|
virtual void resetCycleCount() = 0;
|
|
virtual void writeCPUData(Uint16 address, Uint8 data) = 0;
|
|
virtual Uint8 readCPUData(Uint16 address, bool opRead) = 0;
|
|
virtual void writePPUData(Uint16 address, Uint8 data) = 0;
|
|
virtual Uint8 readPPUData(Uint16 address) = 0;
|
|
virtual Uint8 getTilePalette(Uint8 tableX, Uint8 tableY, Uint8 tileX, Uint8 tileY);
|
|
virtual void getPattern(Uint16 address, Uint8 row, bool isFirst, Uint8& data, Uint32& patternAddress, Uint32& ramAddress) = 0;
|
|
virtual void saveState(fstream* statefile) = 0;
|
|
virtual void loadState(fstream* statefile) = 0;
|
|
|
|
};
|