Base Page Layout

Every program that runs under GEMDOS has a base page area which contains certain information. It is $100 bytes long.

Offset

Name

Contents

$00

p_lowtpa

base address of the TPA (i.e. here)

$04

phitpa

pointer to end of TPA +1

$08

pjtbase

pointer to start of TEXT area

$0C

p_tlen

length of TEXT area

$10

p_dbase

pointer to start of DATA area

$14

p_dlen

length of DATA area

$18

p_bbase

pointer to start of BSS area

$1C

p_blen

length of BSS area

$20

p_dta

pointer to DTA address

$24

p_parent

pointer to parent's base page (0 if desk accessory)

$2C

p_env

pointer to environment string

$80

p_cmdlin

command line; length byte then string, which is guaranteed to be null-terminated

0 0

Post a comment

  • Receive news updates via email from this site