-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoader.h
More file actions
29 lines (25 loc) · 894 Bytes
/
Loader.h
File metadata and controls
29 lines (25 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Loader
{
private:
bool loaded; //set to true if a file is successfully loaded into memory
std::ifstream inf; //input file handle
public:
Loader(int argc, char * argv[]);
bool fileOpen(int argc, char * argv[]);
bool isLoaded();
bool hasData(std::string lineRead);
void loadline(std::string lineRead);
int32_t convert(std::string line, int a, int b);
bool hasErrors(std::string input);
bool align(std::string input);
bool memAddress(std::string input);
bool colon(std::string input);
bool validChar(std::string input);
bool comment(std::string input);
bool byteTwo(std::string input);
bool dataNoAdd(std::string input);
bool boundsCheck(std::string input);
bool trickyErrors(std::string input);
bool greaterMem(std::string input);
int32_t lastAddr;
};