NINTV-DS/arm9/source/emucore/ROMBanker.h
2021-09-02 17:32:31 -04:00

28 lines
459 B
C++

#ifndef ROMBANKER_H
#define ROMBANKER_H
#include "RAM.h"
#include "ROM.h"
#include "types.h"
class ROMBanker : public RAM
{
public:
ROMBanker(ROM* rom, UINT16 address, UINT16 triggerMask, UINT16 trigger, UINT16 matchMask, UINT16 match);
virtual void reset();
virtual void poke(UINT16 location, UINT16 value);
private:
ROM* rom;
UINT16 triggerMask;
UINT16 trigger;
UINT16 matchMask;
UINT16 match;
};
#endif