mirror of
https://github.com/amhndu/SimpleNES.git
synced 2024-06-12 09:27:00 -04:00
28 lines
581 B
C++
28 lines
581 B
C++
#ifndef CARTRIDGE_H
|
|
#define CARTRIDGE_H
|
|
|
|
namespace
|
|
{
|
|
using Byte = uint8_t;
|
|
using Address = uint16_t;
|
|
|
|
class Cartridge
|
|
{
|
|
public:
|
|
Cartridge();
|
|
bool loadFromFile(std::string path);
|
|
const std::vector<Byte>& getROM();
|
|
const std::vector<Byte>& getVROM();
|
|
Byte getMapper();
|
|
private:
|
|
std::vector<Byte> m_PRG_ROM;
|
|
std::vector<Byte> m_CHR_ROM;
|
|
Byte m_nameTableMirroring;
|
|
Byte m_mapper;
|
|
bool m_extendedRAM;
|
|
};
|
|
|
|
}
|
|
|
|
#endif // CARTRIDGE_H
|