text: #pragma once
  #include "Mapper.h"
  
  class Mapper002 : public Mapper
  {
  public:
  	Mapper002(int mapperNumber, int prgChunks, int chrChunks, std::vector<uint8_t>& prg, std::vector<uint8_t>& chr);
  	Mapper002(Snapshot& bytes, std::vector<uint8_t>& prg, std::vector<uint8_t>& chr);
  	bool MapCpuRead(uint16_t& addr, uint8_t& data, bool readonly = false) override;
  	bool MapCpuWrite(uint16_t& addr, uint8_t data) override;
  	Snapshot SaveState() const override;
  	void Reset() override;
  private:
  	uint8_t loPrgBank;
  	uint8_t hiPrgBank;
  };
  