source: buchla-68k/include/objdefs.h@ 7258c6a

Last change on this file since 7258c6a was 7258c6a, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Use standard integer types.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 ============================================================================
3 objdefs.h -- Object file format for as68 (Atari 1040ST TOS objects)
4 Version 7 -- 1987-12-30 -- D.N. Lynx Crowe
5 ============================================================================
6*/
7
8struct EXFILE { /* executable file header */
9
10 uint16_t F_Magic; /* File type magic */
11 int32_t F_Text; /* SIze of text segment */
12 int32_t F_Data; /* Size of data segment */
13 int32_t F_BSS; /* Size of BSS segment */
14 int32_t F_Symtab; /* Size of symbol table */
15 int32_t F_Res1; /* Reserved area #1 */
16 int32_t F_Res2; /* Reserved area #2 -- text origin */
17 uint16_t F_Res3; /* Reserved area #3 -- flag word */
18
19 /* data origin - long */
20 /* bss origin - long */
21};
22
23#define F_R_C 0x601A /* Magic for contiguous file */
24#define F_R_D 0x601B /* Magic for discontiguous file */
25
26struct SYMBOL { /* Symbol table entry -- 14 bytes */
27
28 int8_t symname[8]; /* Symbol name (LJZF) */
29 uint16_t symtype; /* Symbol type flags */
30 int32_t symvalue; /* Symbol value */
31};
32
33#define S_Def 0x8000 /* Defined */
34#define S_Equ 0x4000 /* Equated */
35#define S_Glb 0x2000 /* Global */
36#define S_Reg 0x1000 /* Equated register */
37#define S_Ext 0x0800 /* External reference */
38#define S_Data 0x0400 /* Data based relocatable */
39#define S_Text 0x0200 /* Text based relocatable */
40#define S_BSS 0x0100 /* BSS based relocatable */
Note: See TracBrowser for help on using the repository browser.