checkpoint

This commit is contained in:
aljazbrodar. 2025-12-07 11:55:34 +01:00
parent 3c876211c2
commit bfa4a8cd72
60 changed files with 239 additions and 87 deletions

View file

@ -1,19 +1,28 @@
#ifndef LOADER_H
#define LOADER_H
#include <string>
#include <iostream>
class Machine;
class Loader
{
private:
Machine* machine;
public:
Loader();
// Prebere niz dolžine len
std::string readString(string &r, int len);
std::string readString(std::istream &in, int len);
// Prebere en bajt (2 heksadecimalni znaka)
int readByte(std::string &r);
int readByte(std::istream &in);
// Prebere eno "besedo" (3 bajte = 6 heksadecimalnih znakov)
int readWord(std::string &r);
int readWord(std::istream &in);
bool loadSection(Machine& machine, std::istream& stream);
bool loadObj(Machine& machine, const std::string& filename);
};
#endif // LOADER_H