•  Back 
  •  XCONTROL 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-File
                            CPX  File Formats


File Naming

Several standard naming conventions for CPX executables and development
files follow:

File Name  Meaning

*.CPX      Standard CPX ready for execution by the Control Panel.

*.CP       CPX missing the 512 byte header.

*_R.CPX    A resident CPX.

*_S.CPX    A "Set-only" CPX.

*.HDR      A 512 byte CPX header file.

*.CPZ      An inactive CPX.

*.RSH      An "embeddable" resource file. CPX's can't execute
           a rsrc_load() so all resource files must be in this format.

The CPX File Format

A CPX file can be represented graphically as follows:

   Part                      Description (length)

   CPX Header Record         512 bytes

   GEMDOS Executable Header  28 bytes

   CPX TEXT Segment          cpx_init() must begin at offset 0 of this
                             segment

   CPX DATA Segment          any data to be saved back into the CPX
                             must begin at offset 0 of this segment

   CPX Symbol Table          if any