Debian Codegraph @

contrib/toacme/src/ab.h

raw symbols SCIP
1 // ToACME - converts other source codes to ACME format.
2 // Copyright (C) 1999-2006 Marco Baye
3 // Have a look at "main.c" for further info
4 //
5 // stuff needed for "VisAss", "AssBlaster 3.x" and "Flash8-AssBlaster"
6 #ifndef ab_H
7 #define ab_H
8
9
10 #include "config.h"
11
12
13 // Definition of "Type of VisAss/AssBlaster" structure
14 struct vab {
15 int flags;
16 int (*number_parser) (void);
17 const char **pseudo_opcodes;
18 const char **mnemonics;
19 int address_mode_count;
20 int first_mnemonic;
21 int mnemonic_count;
22 int first_pseudo_opcode;
23 int pseudo_opcode_count;
24 int first_unused_byte_value;
25 int unused_values_count;
26 };
27 #define VABFLAG_HASLENGTHBYTE (1u << 0)
28 #define VABFLAG_ADD_DOT (1u << 1)
29
30
31 // Constants
32 extern const char nothing[];
33 #define AB_ENDOFLINE 0xff
34 // meaning of internal error word. errors are collected until *after* a line
35 // has been finished so the warning messages don't interfere with the generated
36 // source code.
37 #define AB_ERRBIT_UNKNOWN_ADDRMODE (1u << 0)
38 #define AB_ERRBIT_UNKNOWN_NUMBER_COMPRESSION (1u << 1) // SIZEMASK invalid
39 #define AB_ERRBIT_UNKNOWN_NUMBER_FORMAT (1u << 2) // FORMATMASK invalid
40 extern const char *visass_ab3_mnemonic_table[];
41 extern const char *visass_ab3_pseudo_opcode_table[];
42
43
44 // Prototypes
45 extern void visass_ab3_illegals(void);
46 extern void AB_output_binary(unsigned long int value);
47 extern void AB_output_hexadecimal(unsigned long int value);
48 extern void AB_main(struct vab *client_config);
49
50
51 #endif