Download TDL Z80 Relocating/Linking Assembler User`s Manual Revision 2.2

Transcript
TDL Z80 Relocating/Linking Assembler User's Manual Page 62
Appendix E: Object Tape Formats
Appendix E
Object Tape Formats
The TDL Assembler produces two different object tape formats depending on the
use of the .PABS and the .PREL pseudo-ops. It also punches the two formats
two different ways, binary (.PBIN) and ASCII (.PHEX). Each of the two formats
will be described separately, and where differences between binary and ASCII
exist, they will be noted. In addition, the .XLINK option allows the
suppression of some of the information in the relocatable format to allow the
direct production of a relocatable core image module instead of a relocatable
object module.
TDL Object Module-Format Definition
The use of the .PREL pseudo-op (which is default if neither is specified)
causes the generation of the TDL Object Module Format. This format allows for
simple relocation of complete programs by the TDL System Monitors, and for
complex relocation and linking of modules by the TDL Linkage Editor.
The default object module format is an extension of the INTEL "hex file"
format, but is not compatible with that format. The module consists of a
sequential file of ASCII characters representing the binary data, symbol, and
control information required to construct a final program from the module.
All binary bytes within this structure are represented as two ASCII
characters corresponding to the hexadecimal value of the byte (e.g. 11001001
-> C9). All ASCII values are, represented by the corresponding ASCII
character (e.g. A -> A). In the binary punch mode, the format is basically
the same, but all binary bytes are represented by themselves, not as two
ASCII characters.
Each of the different records within the module is indicated by the use of a
prompt character as the first character of the record (in the INTEL format,
this is the “:”). The valid prompt characters are:
!
@
#
\
&
;
->
->
->
->
->
->
module identification record
entry point record
internal symbol record
external symbol/relocation base record
symbol table record
data/program/end-of-file record