Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!caip!clyde!cbatt!ihnp4!inuxc!inuxm!sdh From: sdh@inuxm.UUCP (Stephen Hoskins) Newsgroups: net.micro,net.micro.cpm Subject: Re: looking for information on Intel Hex file format Message-ID: <450@inuxm.UUCP> Date: Thu, 9-Oct-86 09:51:54 EDT Article-I.D.: inuxm.450 Posted: Thu Oct 9 09:51:54 1986 Date-Received: Fri, 10-Oct-86 03:43:20 EDT References: <753@ur-tut.UUCP> Organization: AT&T Consumer Products, Indianapolis Lines: 37 Xref: mnetor net.micro:6230 net.micro.cpm:2463 > > I have a file in Intel Hex format. This is a hex representation of a binary > file. I need to decode it and, ultimately, load it into memory. Does > anyone know how to read these files? How to interpret the different > fields? Any leads or pointers? > > > -- > --> Jon Krueger > uucp: {seismo, bullwinkle, allegra, decvax, harvard}!rochester!ur-tut!tuba > Phone: (716) 275-2811 work, 235-1495 home BITNET: TUBA@UORDBV > Drop in next time you're in the tri-planet area! First thing on every line is a colon. Then, 2 hex digits saying how many data bytes are in this line. Then, 4 hex digits giving the memory address where the data should be loaded. Then, 2 hex digits that I always ignore. Then, there are 2 hex digits for every data byte contained in this line. Finally, there are 2 hex digits that are a checksum over the whole line. Here is a sample: :10E00000C37AE0C3FAE0C3EBE0C36BE1C39CE1C3B6 :00000000 This line has 10 (hex) bytes of data and loads into RAM at E000 (hex). The first data byte is C3 (hex); the last is C3 (hex). The checksum is B6 (hex). Get the idea? By the way. The last line in the file has a byte count of 0. That's how you know when you're at the end of the file. Stephen Hoskins AT&T Consumer Products Labs ihnp4!inuxc!inuxm!sdh