added breakpoints

This commit is contained in:
Lauchmelder 2022-03-01 03:34:19 +01:00
parent 53a7baf91f
commit 1220631e7e
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
23 changed files with 303 additions and 220 deletions

View file

@ -4,7 +4,8 @@
#include <fstream>
#include "../Cartridge.hpp"
Mapper000::Mapper000(Header& header, std::ifstream& ifs)
Mapper000::Mapper000(const Header& header, std::ifstream& ifs) :
Mapper(header)
{
LOG_CORE_INFO("Allocating PRG ROM");
PRG_ROM = std::vector<Byte>(0x4000);

View file

@ -10,7 +10,7 @@ class Mapper000 :
public Mapper
{
public:
Mapper000(Header& header, std::ifstream& ifs);
Mapper000(const Header& header, std::ifstream& ifs);
virtual Byte ReadCPU(Word addr) override;
virtual Byte ReadPPU(Word addr) override;