User manual
Monitor12 (MON12) User Manual 05/30/01
25
S9030000FC
The above format consists of an S0 header record, four S1 code/data records, and
an S9 termination record.
The S0 header record is comprised of the following character pairs:
S0 S-record type S0, indicating a header record.
06 Hexadecimal 06 (decimal 06), indicating six character pairs
(or ASCII bytes) follow.
0000 Four-character 2-byte address field, zeroes.
48
44 ASCII H, D, and R - "HDR".
52
1B Checksum of SO record.
The first S1 code/data record is explained as follows:
S1 S-record type S1, indicating a code/data record to be
loaded/verified at a 2-byte address.
13 Hexadecimal 13 (decimal 19), indicating 19 character pairs,
representing 19 bytes of binary data, follow.
0000 Four-character 2-byte address field; hexadecimal address 0000,
indicates location where the following data is to be loaded.
The next 16 character pairs are the ASCII bytes of the actual program code/data.
In this assembly language example, the hexadecimal opcodes of the program are
written in sequence in the code/data fields of the S1 records;
OPCODE INSTRUCTION
28 5F BHCC $0161
24 5F BCC $0163
22 12 BHI $0118
22 6A BHI $0172
00 04 24 BRSET 0,$04,$012F
29 00 BHCS $010D
08 23 7C BRSET 4,$23,$018C
. (Balance of this code is continued in the code/data fields
. of the remaining S1 records, and stored in memory location
. 0010, etc..)
2A Checksum of the first S1 record.
The second and third S1 code/data records each also contain $13 (19)
character pairs and are ended with checksums 13 and 51, respectively.
The fourth S1 code/data record contains 07 character paris and has a
checksum of 92.
The S9 termination record is explained as follows: