Download HiSoft Devpac 3 (text version) [1992] [Manual: PDF]

Transcript
to give the fastest possible load and execution times. This is the case for most of the tools in
Devpac with the notable except for the auto-resident version of Mon which stores its screen in
its TPA and so must be loaded into system RAM.
TEXT
CODE
DATA
BSS
These are synonyms for SECTION TEXT, SECTION TEXT, SECTION DATA and SECTION
BSS respectively.
ORG
expression
This will make the assembler generate position-dependent code and set the program counter
to the given value. Normal GEMDOS programs do not need an ORG statement even if
position-dependent. It is included to allow code to be generated for the ROM port or for other
68000 machines. More than one ORG statement is allowed in a source file but no padding of
the file is done.
ORG should be used with great care as the binary file generated will probably not execute
correctly when double-clicked, as no relocation information is written out. The binary file
produced has the standard GEMDOS header at the front, but no relocation information.
This directive is very unlikely to make sense when assembling to memory.
RORG
expression
This directive changes the program counter to the specified number of bytes from the start of
the current section. Note that the value specified must be greater than the current PC and the
file will be padded with zeroes to the approrpiate location.
GST Linkable (GST, L1)
This format was originally created for the Sinclair QL, but became popular on the ST and is
supported by a wide range of European programming tools. The format is an extremely
flexible linkable format, although its lack of word-alignment within the file structure can be a
source of reduced performance in linkers, for example.
The file format supports up to 32767 sections with up to 32767 symbols per section. Symbols
and section names may be up to 32 characters long.
Libraries in GST format are simply a concatenation of multiple .BIN files, though there are
some unofficial extensions to this standard. Gen is capable of generating library files from a
single source file using the MODULE directive.
Symbol imports are particularly flexible; any number of imports may be used within an
expression, which can be byte, word or long, PC relative or absolute. Only + and - operators
are permitted between imports.
The normal extension for GST files is .BIN.
The Assembler
Hisoft Devpac 3
Page 94