Debian Codegraph @

src/asm/output.h

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 //
2 // ACME - a crossassembler for producing 6502/65c02/65816 code.
3 // Copyright (C) 1998-2006 Marco Baye
4 // Have a look at "acme.c" for further info
5 //
6 // Output stuff
7 #ifndef output_H
8 #define output_H
9
10 #include <stdio.h>
11 #include "config.h"
12
13
14 // Constants
15 #define MEMINIT_USE_DEFAULT 256
16
17
18 // Prototypes
19
20 // Init file format tree (is done early)
21 extern void Outputfile_init(void);
22 // alloc and init mem buffer, register pseudo opcodes (done later)
23 extern void Output_init(signed long fill_value);
24 // clear segment list
25 extern void Output_passinit(signed long start_addr);
26 // call this if really calling Output_byte would be a waste of time
27 extern void Output_fake(int size);
28 // Send low byte of arg to output buffer and advance pointer
29 extern void (*Output_byte)(intval_t);
30 // Output 8-bit value with range check
31 extern void Output_8b(intval_t);
32 // Output 16-bit value with range check
33 extern void Output_16b(intval_t);
34 // Output 24-bit value with range check
35 extern void Output_24b(intval_t);
36 // Output 32-bit value (without range check)
37 extern void Output_32b(intval_t);
38 // Try to set output format held in DynaBuf. Returns whether succeeded.
39 extern bool Output_set_output_format(void);
40 // write smallest-possible part of memory buffer to file
41 extern void Output_save_file(FILE* fd);
42 // send final output as binary
•43 extern char* Output_get_final_data(int *length);
44 // Call when "*=EXPRESSION" is parsed
45 extern void Output_start_segment(void);
46 // Show start and end of current segment
47 extern void Output_end_segment(void);
48
49
50 #endif