-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.h
More file actions
60 lines (52 loc) · 2.76 KB
/
module.h
File metadata and controls
60 lines (52 loc) · 2.76 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* OS-9 module header definitions */
/* Executable memory module */
typedef struct {
unsigned m_sync, /* sync bytes ($87cd) */
m_size, /* module size */
m_name; /* offset to module name */
char m_tylan, /* type & language */
m_attrev, /* attributes & revision */
m_parity; /* header parity */
unsigned m_exec, /* offset to execution start */
m_store; /* initial storage size */
} mod_exec;
/* Device descriptor module */
typedef struct {
unsigned m_sync, /* sync bytes ($87cd) */
m_size, /* module size */
m_name; /* offset to module name */
char m_tylan, /* type & language */
m_attrev, /* attributes & revision */
m_parity; /* header parity */
unsigned m_fmname, /* offset to file manager name */
m_ddname; /* offset to device driver name */
char m_mode; /* mode byte */
char m_control[3]; /* device controller address (24 bit)*/
char m_tabsize; /* option table size */
} mod_dev;
/* Configuration module */
typedef struct {
unsigned m_sync, /* sync bytes ($87cd) */
m_size, /* module size */
m_name; /* offset to module name */
char m_tylan, /* type & language */
m_attrev, /* attributes & revision */
m_parity; /* header parity */
char m_ramtop[3]; /* top limit of free ram */
char m_irqno, /* IRQ polling entries */
m_devno; /* device entries */
unsigned m_startup, /* offset to startup mod. name */
m_sysdrive, /* offset to default drive name */
m_boot; /* offset to bootstrap module name */
} mod_config;
/* C data module */
typedef struct {
unsigned m_sync, /* sync bytes ($87cd) */
m_size, /* module size */
m_name; /* offset to module name */
char m_tylan, /* type & language */
m_attrev, /* attributes & revision */
m_parity; /* header parity */
unsigned m_data, /* offset to data */
m_dsize; /* size of data */
} mod_data;