Starting to load symbols

This commit is contained in:
Zoe Roux
2021-02-06 18:29:15 +01:00
parent 0e16f81042
commit a826168eb2
8 changed files with 90 additions and 8 deletions
+7 -1
View File
@@ -12,7 +12,8 @@
namespace ComSquare::Cartridge
{
Cartridge::Cartridge(const std::string &romPath)
: Ram::Ram(0, Rom, "Cartridge")
: Ram::Ram(0, Rom, "Cartridge"),
_romPath(romPath)
{
if (romPath.empty())
throw InvalidRomException("Path is empty.");
@@ -48,6 +49,11 @@ namespace ComSquare::Cartridge
throw InvalidAction("Witting to the ROM is not allowed.");
}
std::filesystem::path Cartridge::getRomPath() const
{
return this->_romPath;
}
Header Cartridge::_mapHeader(uint32_t headerAddress)
{
Header head;