forked from SDL-Hercules-390/hyperion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archlvl.h
44 lines (36 loc) · 1.99 KB
/
archlvl.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
38
39
40
41
42
43
44
/* ARCHLVL.H (C) Copyright "Fish" (David B. Trout), 2018-2019 */
/* Architecture Level structures and functions */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
#ifndef _ARCHLVL_H_
#define _ARCHLVL_H_
/*-------------------------------------------------------------------*/
/* ARCHTAB struct */
/*-------------------------------------------------------------------*/
struct ARCHTAB
{
const char* name; /* Architecture name */
const int num; /* Architecture number */
const int amask; /* Architecture bit-mask */
};
typedef struct ARCHTAB ARCHTAB;
/*-------------------------------------------------------------------*/
/* ARCHTAB macro */
/*-------------------------------------------------------------------*/
#define AT( _name, _num, _amask ) \
{ \
(_name), \
(_num), \
(_amask) \
},
/*-------------------------------------------------------------------*/
/* ARCHTAB functions */
/*-------------------------------------------------------------------*/
extern void init_default_archmode();
extern const char* get_arch_name( REGS* regs );
extern const char* get_arch_name_by_arch( int archnum );
extern const ARCHTAB* get_archtab_by_arch( int archnum );
extern const ARCHTAB* get_archtab_by_name( const char* name );
#endif // _ARCHLVL_H_