-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSaver.h
33 lines (30 loc) · 965 Bytes
/
Saver.h
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
30
31
32
33
#ifndef SAVER_H
#define SAVER_H
#include <Util.h>
#include <QString>
#include <GlobalTypes.h>
class Saver
{
public:
Saver();
void static vanguard();
void static loadState();
void static saveState();
/** savePortable
* \param fileName
* \param beginning
* \param end
* \param takeCommentBefore
*
* \todo file end name checking
*/
void static savePortable(mem_addr_t beginning = 0x3000, mem_addr_t end = 0x3100, bool takeCommentBefore = true, QString fileName = "testing123.asm");
private:
void static isNonDataLabled(mem_addr_t target);
void static handleLabels(std::ofstream &destination, mem_addr_t addr);
void static handleValues(std::ofstream &destination, mem_addr_t addr);
void static handleComments(std::ofstream &destination, mem_addr_t addr);
void static handleEnd(std::ofstream &destination);
void getSaveBounds(mem_addr_t &start, mem_addr_t &end);
};
#endif // SAVER_H