checkpoint
This commit is contained in:
parent
4c6c4b8a22
commit
3c876211c2
35 changed files with 365 additions and 207 deletions
19
ass2/simulator/loader.h
Normal file
19
ass2/simulator/loader.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef LOADER_H
|
||||
#define LOADER_H
|
||||
#include <string>
|
||||
|
||||
class Loader
|
||||
{
|
||||
public:
|
||||
Loader();
|
||||
// Prebere niz dolžine len
|
||||
std::string readString(string &r, int len);
|
||||
|
||||
// Prebere en bajt (2 heksadecimalni znaka)
|
||||
int readByte(std::string &r);
|
||||
|
||||
// Prebere eno "besedo" (3 bajte = 6 heksadecimalnih znakov)
|
||||
int readWord(std::string &r);
|
||||
};
|
||||
|
||||
#endif // LOADER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue