Debian Codegraph @

src/Dasm.h

raw symbols SCIP
1 #ifndef DASM_H
2 #define DASM_H
3
4 #include <string>
5 #include <vector>
6 #include <stdint.h>
7
8 class SymbolTable;
9 struct MemoryLayout;
10
11 struct DisasmRow {
12 enum RowType { INSTRUCTION, LABEL };
13
14 RowType rowType;
15 unsigned short addr;
16 char numBytes;
17 int infoLine;
18 std::string instr;
19 };
20
21 static const DisasmRow DISABLED_ROW = {DisasmRow::INSTRUCTION, 0, 1, 0, "- "};
22 static const int FIRST_INFO_LINE = 1;
23 static const int LAST_INFO_LINE = -65536;
24
25 using DisasmLines = std::vector<DisasmRow>;
26
27 void dasm(const unsigned char* membuf, uint16_t startAddr, uint16_t endAddr, DisasmLines& disasm,
28 MemoryLayout *memLayout, SymbolTable *symTable, int currentPC);
29
30 #endif // DASM_H