mirror of
https://github.com/mkwong98/HDNes.git
synced 2024-06-02 19:38:14 -04:00
37 lines
617 B
C++
37 lines
617 B
C++
#ifndef MEMBUS_H
|
|
#define MEMBUS_H
|
|
|
|
#include "../classList.h"
|
|
#include <corePart.h>
|
|
|
|
|
|
class memBus : public corePart
|
|
{
|
|
public:
|
|
Uint8 internalRAM[0x800];
|
|
|
|
//short cut pointers
|
|
cart* rom;
|
|
cpu* cp;
|
|
ppu* pp;
|
|
apu* ap;
|
|
gamepad* gp;
|
|
|
|
memBus();
|
|
virtual ~memBus();
|
|
|
|
void reset();
|
|
void saveState(fstream* statefile);
|
|
void loadState(fstream* statefile);
|
|
void init();
|
|
|
|
Uint8 readByte();
|
|
Uint8 memRead(Uint16 address);
|
|
|
|
protected:
|
|
|
|
private:
|
|
};
|
|
|
|
#endif // MEMBUS_H
|