-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOutputItem.h
More file actions
38 lines (31 loc) · 854 Bytes
/
Copy pathOutputItem.h
File metadata and controls
38 lines (31 loc) · 854 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
30
31
32
33
34
35
36
37
38
#ifndef _OUTPUTITEM_H_
#define OUTPUTITEM_H_
#include <vector>
class OutputItem {
private:
Labels *labels;
char *renderFmt;
std::vector<char *> comments;
char instruction[MAXSTR];
char operand[MAXSTR];
long startAddress;
char label[MAXSTR];
public:
OutputItem(Labels *l);
void clear();
void set(char *inst, char *op);
void set(char *lab, char *inst, char *op, char *cmnt);
void render();
void render(char *inst);
void render(char *inst, char *op);
void render(char *lab, char *inst, char *op, char *cmnt);
void flushComments();
void setLabel(const char *fmt, ...);
void setInstruction(const char *fmt, ...);
char *getInstruction() { return instruction; };
void setOperand(const char *fmt, ...);
void addComment(const char *fmt, ...);
void setType(int newType);
void setAddress(long addr);
};
#endif