1srec_fairchild(5)             File Formats Manual            srec_fairchild(5)
2
3
4

NAME

6       srec_fairchild - Fairchild Fairbug file format
7

DESCRIPTION

9       The Fairchild Fairbug format has 8-byte records.  A file begins with an
10       address record and ends with an end-of-file record.
11
12       There are three record types in this file format.
13
14       Address records are of the form
15
16                                     ┌──┬──────┐
17                                     │S │ nnnn
18       indicating the address for the└─f─o┴l─l─o─w─i─n─g┘data records.
19
20       Data records are of the form
21
22                             ┌──┬──────────────────┬───┐
23                             │X │ ffffffffffffffffc
24       Each data record begin└s──w┴i─t─h──a─n──X──a─n─d──a─l─w─a─y─s┴──c─o┘ntains  8  data  bytes.
25       The  ff  characters  are  hexadecimal byte values (8 bytes).  Each data
26       byte is represented by 2 hexadecimal characters.  The c character is  a
27       hex  digit being the the nibble-sum of the data bytes.  A 1-digit hexa‐
28       decimal checksum follows the data in each data  record.   The  checksum
29       represents,  in hexadecimal notation, the sum of the binary equivalents
30       of the 16 digits in the record; the half carry from the fourth  bit  is
31       ignored.   The  programmer  ignores  any  character (except for address
32       characters and the asterisk character, which terminates the data trans‐
33       fer)  between  a  checksum  and  the  start  character of the next data
34       record. This space can be used for comments.
35
36       The end-of-file record has the form
37
38                                         ┌──┐
39                                         │* │
40       The last record consists of an ast└e─r─i┘sk only, which indicates  the  end
41       of file.
42
43   Size Multiplier
44       In general, binary data will expand in sized by approximately 2.4 times
45       when represented with this format.
46

EXAMPLE

48       Here is an example  Fairchild  Fairbug  file.   It  contains  the  data
49       ``Hello,  World''  to be loaded at address 0x1000.  Notice how the last
50       record is padded with 0xFF bytes.
51              S1000
52              X48656C6C6F2C2057C
53              X6F726C64210AFFFF3
54              *
55
57       srec_cat version 1.35
58       Copyright (C) 1998, 1999, 2000, 2001, 2002,  2003,  2004,  2005,  2006,
59       2007 Peter Miller
60
61       The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use
62       the 'srec_cat -VERSion License' command.  This is free software and you
63       are  welcome  to  redistribute it under certain conditions; for details
64       use the 'srec_cat -VERSion License' command.
65

AUTHOR

67       Peter Miller   E-Mail:   millerp@canb.auug.org.au
68       /\/\*             WWW:   http://www.canb.auug.org.au/~millerp/
69
70
71
72Reference Manual                    SRecord                  srec_fairchild(5)
Impressum