home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.m6809
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!eehp5!rg9538
- From: rg9538@eehp5 (Ronald E Garnett)
- Subject: Re: S-record format needed
- References: <eronald.723864399@ruble> <1992Dec10.023716.5408@mri.com> <1g6o4pINNhpv@darkstar.UCSC.EDU>
- Message-ID: <Bz9D27.4IK@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Mon, 14 Dec 1992 16:42:04 GMT
- Keywords: motorola, s-records
- Lines: 55
-
-
-
- The S-Record format is explained very well in the documentation
- which comes with the EVB and the EVBU boards. I'm surprised
- that your assembler documentation does not have a description.
-
-
- It's all very simple. The HC11 recognizes 2 types of S record.
- I am recalling them from memory, so I hope they are correct!
-
-
- S1 <# OF DATA BYTES> <ADDRESS OF DATA BYTES(2)> <DATA BYTES (X)> <CHECKSUM (1)>
-
- S9 <# OF DATA BYTES> <ADDRESS TO JUMP TO (2)> <CHECKSUM(1)>
-
-
- THE <# OF DATA BYTES> FIELD INCLUDES ONLY THE NUMBER OF BYTES WHICH WILL
- GO INTO THE MEMORY STARTING AT THE <ADDRESS OF DATA BYTES> FIELD.
-
- tHE CHECKSUM IS THE COMPLEMENT OF THE MODULO 256 SUM OF ALL THE BYTES IN THE
-
- Note that the <# of data bytes> field has a length of one byte, the <address
- ....> field has 2 bytes, and the <checksum...> field has 1 byte.
-
- Also note that the <address to jump to> field is probably not used and will
- usually be zero.
-
-
-
- The S9 record is considered the end of the file.
-
-
- S1026000123457
- S10260025678CD
- s9000000FF
-
-
- result:
-
- 6000: 12
- 6001: 34
- 6002: 45
- 6003 67
-
-
- There may be errors in my description, but at least you get the idea!
-
-
- Good Luck!
-
-
- Ron Garnett
- .
-
-
-