added loading

This commit is contained in:
zanostro 2025-11-17 13:45:03 +01:00
parent d438feb9ee
commit 598865d216
4 changed files with 86 additions and 1 deletions

View file

@ -11,6 +11,7 @@ public:
~FileReader() override;
int readByte() override;
bool readBytes(uint8_t* buf, size_t len) override;
std::string readString(size_t len) override;
std::string readLine() override;

View file

@ -51,6 +51,9 @@ private :
string _filename;
shared_ptr<FileReader> _file_reader;
HeaderMetadata readHeader();
TextRecord readTextRecord();
EndRecord readEndRecord();
bool load_into_memory(int start_address, const std::vector<uint8_t>& data);
};