1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-01-30 13:06:45 +00:00
Files
mist-devel.mist-board/tools/vasm/output_tos.h
2014-01-31 12:21:39 +00:00

46 lines
1.0 KiB
C

/* output_tos.h header file for Atari TOS format */
/* (c) in 2009,2012 by Frank Wille */
/* section index */
#define _TEXT 0
#define _DATA 1
#define _BSS 2
/* TOS program header */
typedef struct
{
char ph_branch[2]; /* branch to start of program (0x601a) */
char ph_tlen[4]; /* .text length */
char ph_dlen[4]; /* .data length */
char ph_blen[4]; /* .bss length */
char ph_slen[4]; /* length of symbol table */
char ph_magic[4];
char ph_flags[4]; /* Atari special flags */
char ph_abs[2]; /* has to be 0, otherwise no relocation takes place */
} PH;
/* DRI symbol table */
#define DRI_NAMELEN 8
struct DRIsym
{
char name[DRI_NAMELEN];
char type[2];
char value[4];
};
#define STYP_UNDEF 0
#define STYP_BSS 0x0100
#define STYP_TEXT 0x0200
#define STYP_DATA 0x0400
#define STYP_EXTERNAL 0x0800
#define STYP_REGISTER 0x1000
#define STYP_GLOBAL 0x2000
#define STYP_EQUATED 0x4000
#define STYP_DEFINED 0x8000
#define STYP_LONGNAME 0x0048
#define STYP_TFILE 0x0280
#define STYP_TFARC 0x02c0