srec_trs80(5)
π NAME π
okay bestie, this is srec_trs80(5) β the Radio Shack TRSβ80 object file format specification, and it lives in the File Formats Manual. No cap, this page is the whole spec vibe. π
β¨ DESCRIPTION β¨
okay so hereβs the tea: this document describes the binary object file format for the Z80βbased Radio Shack TRSβ80 microcomputers, such as the Model I, II, III, 4, 4D, and 4P. Itβs generated by the diskβbased Assembler/Editor, and itβs used for TRSβDOS program files. πΎβ¨
The object file is blocked into records, and each record contains the record type, length, and payload data. For Data and End of File records, the payload starts with two bytes of address in littleβendian format. There are four main types of records that are defined. The record types are:
- Data Record
- End of File Record with Execution Transfer
- End of File Record without Execution Transfer
- Comment
- Start Linear Address Record (32βbit format only)
π General Record Format π
βββββββββββ¬ββββββββββ¬ββββββββββ¬ββββββββββ
β Record β Record β Load β Data β
β Type β Length β Address β β
βββββββββββ΄ββββββββββ΄ββββββββββ΄ββββββββββ
π Record Type.
Each record begins with a single byte Record Type field, and that field specifies the record type of this record. The Record Type field is what you use to interpret the remaining information within the record. This field is one byte, represented as two hexadecimal characters. The encoding for all the current record types is:
1β Data Record2β End of File Record with Execution Transfer3β End of File Record without Execution Transfer5β Comment Record
π§ Record Length
Each record has a single byte Record Length field, and it specifies the number of bytes of information or data that follows the Record Length field of the record. The maximum value of the Record Length field is hexadecimal FF or 255. In the case of Data Records only, Record Length byte values of zero to two are considered to be lengths of 256 to 258, respectively. Numbers stay exact, periodt. π’
π Address
Data and End records have a twoβbyte Address field in littleβendian byte order. For Data records, this is the starting address at which to load the remaining payload of the record. In End records, this is the address for the start of execution of the file, or zero if not applicable.
π¦ Data
Each record has a variable length Data field, and it consists of zero or more bytes. The interpretation of this field depends on the Record Type field. Thatβs the vibe check. π
π REFERENCE π
This information comes from the "Program Files" section of the TRSDOSβII Reference Manual, Tandy Corporation, 1982. Thatβs the source, bestie. π«Ά
π COPYRIGHT π
srec_cat version 1.65Copyright (C) 1998... Peter Miller
The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use the 'srec_cat -VERSion License' command. This is free software and you are welcome to redistribute it under certain conditions; for details use the 'srec_cat -VERSion License' command. πβ¨
π MAINTAINER π
- Scott Finneran β EβMail:
scottfinneran@yahoo.com.au - Peter Miller β EβMail:
pmiller@opensource.org.au
and thatβs the footer moment, bestie: Reference Manual Β· SRecord Β· srec_trs80(5) β bye, love u, go read the specs πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- Copyright (C) 2012 Peter Miller
- Copyright (C) 1998, 2006-2009, 2014 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms