Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File5.21.23 Process Descriptor (PD) resp. BASEPAGE TOS typedef struct pd { VOID *p_lowtpa; /* Start address of the TPA */ VOID *p_hitpa; /* First byte after the end of the TPA */ VOID *p_tbase; /* Start address of the program code */ int32_t p_tlen; /* Length of the program code */ VOID *p_dbase; /* Start address of the DATA segment */ int32_t p_dlen; /* Length of the DATA section */ VOID *p_bbase; /* Start address of the BSS segment */ int32_t p_blen; /* Length of the BSS section */ DTA *p_dta; /* Pointer to the default DTA */ /* Warning: Points first to the */ /* command line ! */ struct pd *p_parent; /* Pointer to the basepage of the */ /* calling processes */ int32_t p_resrvd0; /* Reserved */ int8_t *p_env; /* Address of the environment string */ int8_t p_resrvd1[80]; /* Reserved */ int8_t p_cmdlin[128]; /* Command line */ } PD; /* also: BASEPAGE */ Note about the command line: The number of characters is inserted in the first line. The maximum length of the command line does not amount to 127, but only to 124 characters! (This does not apply in MagiC as of Version 3 - see ARGV procedure). See also: GEMDOS OSHEADER Pexec Program launch and TPA