?? 00000003.htm
字號:
<br /> <br /> 30 <br /> <br /> <br /> <br /> <br /> Freeware Assemblers User's Manual <br /> <br /> <br /> <br />encoding, transportation, and decoding needs. The Freeware <br />assemblers use only two types, the S1 and S9: <br /> <br /> S1 A record containing code/data and the 2-byte <br /> address at which the code/data is to reside. <br /> <br /> S9 A termination record for a block of S1 records. The address <br /> field may optionally contain the 2-byte address of the <br /> instruction to which control is to be passed. If not <br /> specified, the first entry point specification <br /> encountered in the object module input will be used. <br /> There is no code/data field. <br /> <br />E.4 S-RECORD EXAMPLE <br /> <br />The following is a typical S-record module: <br /> <br /> S1130000285F245F2212226A000424290008237C2A <br /> S11300100002000800082629001853812341001813 <br /> S113002041E900084E42234300182342000824A952 <br /> S107003000144ED492 <br /> S9030000FC <br /> <br />The module consists of four code/data records and an S9 termination <br />record. <br /> <br />The first S1 code/data record is explained as follows: <br /> <br /> S1 S-record type S1, indicating a code/data record to be <br /> loaded/verified at a 2-byte address. <br /> <br /> 13 Hex 13 (decimal 19), indicating 19 character pairs, <br /> <br /> representing 19 bytes of binary data, follow. <br /> <br /> 00 Four-character 2-byte address field: hex address 0000, <br /> indicates location where the following data is to be loaded. <br /> <br /> The next 16 character pairs are the ASCII bytes of the actual <br /> program code/data <br /> <br /> 2A Checksum of the first S1 record. <br /> <br />The second and third S1 code/data records each also contain $13 <br />character pairs and are ended with checksums. The fourth S1 code/data <br />record contains 7 character pairs. <br /> <br />The S9 termination record is explained as follows: <br /> <br /> S9 S-record type S9, indicating a termination record. <br /> <br /> 03 Hex 03, indicating three character pairs (3 bytes) to <br /> follow. <br /> <br /> 00 Four character 2-byte address field, zeroes. <br /> 00 <br /> <br /> FC Checksum of S9 record. <br /> <br /> 31 <br /> <br /> <br />【 在 negative (┅) 的大作中提到: 】 <br />∶<i> 我也想問個問題 </i><br />∶<i> 這個s文件是怎么分類的 </i><br />∶<i> 就比如說s19后面那個數字的含義? </i><br />∶<i> 是適用于不同型號的單片機么? </i><br /> <br /> <br />-- <br /> <br />※ 來源:·BBS 水木清華站 smth.edu.cn·[FROM: 210.32.133.3] <br /><a href="00000003.htm">上一篇</a><a href="javascript:history.go(-1)">返回上一頁</a><a href="index.htm">回到目錄</a><a href="#top">回到頁首</a></center><center><h1>BBS 水木清華站∶精華區</h1></center></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -