?? 00000003.htm
字號:
<?xml version="1.0" encoding="gb2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><title>Re: 哪一位網友知道s-record格式,有問題 turbolinux </title></head><body><center><h1>BBS 水木清華站∶精華區</h1></center><a name="top"></a>發信人: dross (走人了), 信區: Embedded <br />標 題: Re: 哪一位網友知道s-record格式,有問題請教 <br />發信站: BBS 水木清華站 (Thu Sep 12 13:39:11 2002), 站內信件 <br /> <br /> <br /> <br /> MOTOROLA <br /> <br /> FREEWARE <br /> <br /> 8-BIT CROSS ASSEMBLERS <br /> <br /> USER'S MANUAL <br /> <br /> <br /> <br /> EDITED BY <br /> <br /> <br /> KEVIN ANDERSON <br /> <br /> FIELD APPLICATIONS ENGINEER <br /> <br /> <br /> APPENDIX E <br /> S-RECORD INFORMATION <br /> <br /> <br />E.1 INTRODUCTION <br /> <br />The S-record output format encodes program and data object modules <br />into a printable (ASCII) format. This allows viewing of the object <br />file with standard tools and allows display of the module while <br />transferring from one computer to the next or during loads between a <br />host and target. The S-record format also includes information for <br />use in error checking to insure the integrity of data transfers. <br /> <br /> <br />E.2 S-RECORD CONTENT <br /> <br />S-Records are character strings made of several fields which identify <br />the record type, record length, memory address, code/data, and <br />checksum. Each byte of binary data is encoded as a 2-character <br />hexadecimal number: the first character representing the high-order <br />4 bits, and the second the low-order 4 bits of the byte. <br /> <br />The 5 fields which comprise an S-record are: <br /> <br /> TYPE RECORD LENGTH ADDRESS CODE/DATA CHECKSUM <br /> <br />The fields are defined as follows: <br /> <br /> FIELD CHARACTERS CONTENTS <br /> ----- ---------- -------- <br /> Type 2 S-record type - S1, S9, etc. <br /> <br /> Record 2 The count of the character pairs in the <br /> length record, excluding the type and record <br /> length. <br /> <br /> Address 4, 6, The 2-, 3-, or 4-byte address at which <br /> or 8 the data field is to be loaded into <br /> memory. <br /> <br /> Code/data 0-2n From 0 to n bytes of executable code, <br /> memory loadable data, or descriptive <br /> information. <br /> <br /> Checksum 2 The least significant byte of the one's <br /> complement of the sum of the values <br /> represented by the pairs of characters <br /> making up the record length, address, <br /> and the code/data fields. <br /> <br />Each record may be terminated with a CR/LF/NULL. <br /> <br /> <br />E.3 S-RECORD TYPES <br /> <br />Eight types of s-records have been defined to accommodate various <br />
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -