1srec_mos_tech(5) File Formats Manual srec_mos_tech(5)
2
3
4
6 srec_mos_tech - MOS Technologies file format
7
9 The Mos Technologies format allows binary files to be uploaded and
10 downloaded between between a computer system (such as a PC, Macintosh,
11 or workstation) and an emulator or evaluation board for microcon‐
12 trollers and microprocessors.
13
14 The Lines
15 Each line consists of 5 fields. These are the length field, address
16 field, data field, and the checksum. The lines always start with a
17 semicolon (;) character.
18
19 The Fields
20 ┌──┬────────┬─────────┬──────┬──────────┬───┐
21 │; │ Length │ Address │ Data │ Checksum │ │
22 └──┴────────┴─────────┴──────┴──────────┴───┘
23 Length The record length field is a 2 character (1 byte) field that
24 specifies the number of data bytes in the record.
25
26 Address This is a 2-byte address that specifies where the data in the
27 record is to be loaded into memory.
28
29 Data The data field contains the executable code, memory-loadable
30 data or descriptive information to be transferred.
31
32 Checksum
33 The checksum is an 2-byte field that represents the least sig‐
34 nificant two byte of the the sum of the values represented by
35 the pairs of characters making up the record's length, address,
36 and data fields.
37
38 Size Multiplier
39 In general, binary data will expand in sized by approximately 2.4 times
40 when represented with this format.
41
43 Here is an example MOS Technologies format file. It contains the data
44 ``Hello, World'' to be loaded at address 0.
45 S110000048656C6C6F2C20576F726C640A9D
46 ;00
47
49 srec_cat version 1.35
50 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
51 2007 Peter Miller
52
53 The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use
54 the 'srec_cat -VERSion License' command. This is free software and you
55 are welcome to redistribute it under certain conditions; for details
56 use the 'srec_cat -VERSion License' command.
57
59 Peter Miller E-Mail: millerp@canb.auug.org.au
60 /\/\* WWW: http://www.canb.auug.org.au/~millerp/
61
62
63
64Reference Manual SRecord srec_mos_tech(5)