User`s manual

S-Record Format
D-5
D
The S0 record is explained as follows:
The first S2 record is explained as follows:
S0 S-record type S0, indicating that it is a header
record for this block of S-records
0A Hexadecimal 0A (decimal 10), indicating that 10
character pairs (or ASCII bytes) follow
0000 Four-character 2-byte address Þeld; hexadecimal
address 0000 (the address Þeld is not used by the
debugger, the debugger ignores this record)
6765745F727463 Module name in ASCII, get_rtc
0D The checksum of this header record
S2 S-record type S2, indicating that it is a code/data
record to be loaded/veriÞed at a 3-byte address
24 Hexadecimal 24 (decimal 36), indicating that 36
character pairs, representing 36 bytes of binary
data, follow
040000 Six-character 3-byte address Þeld; hexadecimal
address 00040000, where the code/data which
follows is to be loaded
7C8402...040024 The next 32 character pairs of the Þrst S2 record are
the ASCII bytes of the actual program code/data.
In this assembly language example, the
hexadecimal opcodes of the program are written in
the sequence in the code/data Þelds of the S2
records:
Address Opcode Instruction
00040000 7C8402A6 MFSPR R4,4
00040004 90830000 STW R4,$0(R3) ($00000000)
00040008 7C8502A6 MFSPR R4,5
0004000C 90830004 STW R4,$4(R3) ($00000004)
00040010 4E800020 BCLR 20,0
00040014 00000000 WORD $00000000