-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisasm.h
executable file
·37 lines (28 loc) · 1.35 KB
/
disasm.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
34
35
36
37
// $Id: disasm.h,v 1.6 2024/07/25 20:33:43 leavens Exp $
#ifndef _DISASM_H
#define _DISASM_H
#include "instruction.h"
// Disassemble code from bf,
// with output going to the file out
extern void disasmProgram(FILE *out, BOFFILE bf);
// Disassemble the text section
// with output going to the file out
extern void disasmTextSection(FILE *out, BOFFILE bf, BOFHeader bh);
// Disassemble length instructions from bf
// with output going to the file out
extern void disasmInstrs(FILE *out, BOFFILE bf, int length);
// Disassemble the binary instruction bi, which would go at address i
// each instruction has a label of the form a%d, where %d is the value of i
extern void disasmInstr(FILE *out, bin_instr_t bi, address_type i);
// Disassemble the data section from bf, based on the information in bh,
// with output going to out
extern void disasmDataSection(FILE *out, BOFFILE bf, BOFHeader bh);
// Disassemble words_to_read static data words from bf,
// with output going to out
extern void disasmStaticDecls(FILE *out, BOFFILE bf, int words_to_read);
// Disassemble the the given word as a static data declaration,
// with output going to out
extern void disasmStaticDecl(FILE *out, word_type w);
// Disassemble the stack section based on the given header information
extern void disasmStackSection(FILE *out, BOFHeader bh);
#endif