🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.electronics
Article #11617

Re: Motorola S19 ==> S2 record. How?

#11617
From: Gil Nardo
Date: Wed, 11 Nov 1992 07:00
72 lines
3244 bytes
U40348@uicvm.uic.edu (Jay Lorenzana) writes:
> Our school is ill-equipped.  We have an old eprom burners
> that will only program Motorola S1 and S2 record files.  How
> can I convert my S19 record file to S1 and S2?
> Are there any complications in modifying hex files?
> And what is a hex to obj file converter?
> Thanks for any help you can give,
>                                   Jay
> A piece of my s19 rec:
> S123C00000000000000000BDC048BDC09ABDC063BDC0A5BDC0BA7FC0037DC0002605BDC0E0
> S123C020CE20F30F7DC002261A1A8300FF2B02200DCE10001F2E40FC962ED72F20D5BDC2F2
> S123C0408120D0BDC28B20CBCE10008EDFFF862F97EECCD000DDEFC60CE73F86100686016F
> ......
> lines deleted
> ......
> S123C3E02A2A204552524F52202A2A202020202020202020202020202020202055702020A2
> S121C40020202020202020202020446F776E204A4F59535449434B204D4F444520202D
> S123D0008600BDC285FEC001140301BDC156432607BDC110BDC0BA3B432607BDC237BDC0C4
> S123D020BA3B432607BDC1CFBDC0BA3B4326158C000026013BBDC1D01400017DC00427038E
> S121D040BDC0BA3B8C00002603BDC110BDC0FDBDC14F8C00112706BDC0BABDC3313BE5
> S9030000FC

The sample you have shown appear to be the usual S-records,
where S1 lines refer to 2 byte address references, and the
S9 line terminates the S1 block.
I'm not sure what exactly it is you are trying to do. The
two possibilities are that you are trying to decipher what
each line means, and/or you are trying to convert S1 records
to S2 records, i.e., your eprom burner only accepts 3 byte
address references.  If you are trying to interpret the S1
records, here's an example:

S123D020BA3B432607BDC1CFBDC0BA3B4326158C000026013BBDC1D01400017DC00427038E

S1 - indicates a 2 byte address location for data

23 - there are 35 bytes to interpret (70 ascii chars past this point)
	hex(23) = dec(35)

D020 - this is the 2 byte address where data bytes are going to go
	hex(D020) = dec(53280)

BA3B432607BDC1CFBDC0BA3B4326158C000026013BBDC1D01400017DC0042703
	34 data bytes expressed as ascii-hex pairs

8E - this is the checksum, which is the least significant byte of the
	 one's complement of the sum of the values. In this case

	checksum = 23 + D0 + 20 + BA + ... + 03 = c71
	~checksum = FFFFFFF38F
        checksum+1 = FFFFFFF38E
	LSBYTE(checksum) = 8E



The S9 line is interpreted as follows:

S9030000FC

S9 - end of S1 lines that preceded this line
03 - 3 more bytes follow (6 chars past this point)
0000 - address field
FC - checksum of this record (same formulation as S1 record above)

If you need to convert from an S-Record file to a binary image, there
is a program at the motorola BBS called convert.exe.  The BBS number
is 1-512-891-FREE.
-- 
Gil Nardo                  | mcs@wet.com
Migrant Computing Services | (415)664-1032
1032 Irving Street, #435   |-----------------
San Francisco, 94122       | Supernova = *!
Technical Details
Message-ID: <4772@wet.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!wet!mcs
References: <92314.232650U40348@uicvm.uic.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!wet!mcs
From: mcs@wet.UUCP (Gil Nardo)
Newsgroups: sci.electronics
Subject: Re: Motorola S19 ==> S2 record. How?
Message-ID: <4772@wet.UUCP>
Date: 11 Nov 92 07:00:43 GMT
References: <92314.232650U40348@uicvm.uic.edu>
Distribution: usa
Organization: Wetware Diversions, San Francisco
Lines: 72