]> Shamusworld >> Repos - rmac/blob - mach.h
0e55fe877d54428c372134f0636cff0c0d4f2142
[rmac] / mach.h
1 //
2 // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
3 // MACH.H - Code Generation
4 // Copyright (C) 199x Landon Dyer, 2017 Reboot and Friends
5 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
6 // Source utilised with the kind permission of Landon Dyer
7 //
8
9 #ifndef __MACH_H__
10 #define __MACH_H__
11
12 #include "rmac.h"
13
14 // Mnemonic table structure
15 #define MNTAB  struct _mntab
16 MNTAB {
17         WORD mnattr;                                    // Attributes (CGSPECIAL, SIZN, ...)
18         LONG mn0, mn1;                                  // Addressing modes
19         WORD mninst;                                    // Instruction mask
20         WORD mncont;                                    // Continuation (or -1)
21         int (* mnfunc)(WORD, WORD);             // Mnemonic builder
22 };
23
24 // Exported variables
25 extern char seg_error[];
26 extern char undef_error[];
27 extern char rel_error[];
28 extern char range_error[];
29 extern char abs_error[];
30 extern char unsupport[];
31 extern MNTAB machtab[];
32 extern int movep;
33
34 #endif // __MACH_H__
35