SRECORD: S-Record type

Tools

Assembler, Linker, or Burner

Syntax
  SRECORD=<RecordType>
  
  
Arguments

<RecordType>: Forces the type for the S-Record File which must be generated. This parameter may take the value `S1', `S2', or `S3'.

Description

This environment variable is only relevant when absolute files are directly generated by the Macro Assembler instead of object files. When this environment variable is defined, the Assembler will generate an S-Record File containing records from the specified type ( S1 records when S1 is specified, S2 records when S2 is specified, and S3 records when S3 is specified).

Note: If the SRECORD environment variable is set, it is the user's responsibility to specify the appropriate type of S-Record File. If you specify S1 while your code is loaded above 0xFFFF, the S-Record File generated will not be correct because the addresses will all be truncated to 2-byte values.

When this variable is not set, the type of S-Record File generated will depend on the size of the address, which must be loaded there. If the address can be coded on 2 bytes, an S1 record is generated. If the address is coded on 3 bytes, an S2 record is generated. Otherwise, an S3 record is generated.

Example
  SRECORD=S2