home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / m6809 / 545 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.6 KB  |  68 lines

  1. Newsgroups: comp.sys.m6809
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!eehp5!rg9538
  3. From: rg9538@eehp5 (Ronald E Garnett)
  4. Subject: Re: S-record format needed
  5. References: <eronald.723864399@ruble> <1992Dec10.023716.5408@mri.com> <1g6o4pINNhpv@darkstar.UCSC.EDU>
  6. Message-ID: <Bz9D27.4IK@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Mon, 14 Dec 1992 16:42:04 GMT
  10. Keywords: motorola, s-records
  11. Lines: 55
  12.  
  13.  
  14.  
  15. The S-Record format is explained very well in the documentation
  16. which comes with the EVB and the EVBU boards.  I'm surprised 
  17. that your assembler documentation does not have a description.
  18.  
  19.  
  20. It's all very simple.  The HC11 recognizes 2 types of S record.
  21. I am recalling them from memory, so I hope they are correct!
  22.  
  23.  
  24. S1 <# OF DATA BYTES> <ADDRESS OF DATA BYTES(2)> <DATA BYTES (X)> <CHECKSUM (1)>
  25.  
  26. S9 <# OF DATA BYTES> <ADDRESS TO JUMP TO (2)> <CHECKSUM(1)>
  27.  
  28.  
  29. THE <# OF DATA BYTES> FIELD INCLUDES ONLY THE NUMBER OF BYTES WHICH WILL
  30. GO INTO THE MEMORY STARTING AT THE <ADDRESS OF DATA BYTES> FIELD.
  31.  
  32. tHE CHECKSUM IS THE COMPLEMENT OF THE MODULO 256 SUM OF ALL THE BYTES IN THE
  33.  
  34. Note that the <# of data bytes> field has a length of one byte, the <address
  35. ....> field has 2 bytes, and the <checksum...> field has 1 byte.
  36.  
  37. Also note that the <address to jump to> field is probably not used and will  
  38. usually be zero.
  39.  
  40.  
  41.  
  42. The S9 record is considered the end of the file.
  43.  
  44.  
  45. S1026000123457
  46. S10260025678CD
  47. s9000000FF
  48.  
  49.  
  50. result:
  51.  
  52. 6000: 12
  53. 6001: 34
  54. 6002: 45
  55. 6003  67
  56.  
  57.  
  58. There may be errors in my description, but at least you get the idea!
  59.  
  60.  
  61. Good Luck!
  62.  
  63.  
  64. Ron Garnett
  65. .
  66.  
  67.  
  68.