Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!ZZZ.RLK%MIT-OZ@MIT-MC.ARPA From: ZZZ.RLK%MIT-OZ@MIT-MC.ARPA Newsgroups: net.micro.cpm Subject: MDMLNK - Patching MDM7xx and other files without DDT or SID Message-ID: <12117@sri-arpa.UUCP> Date: Mon, 9-Apr-84 12:09:00 EST Article-I.D.: sri-arpa.12117 Posted: Mon Apr 9 12:09:00 1984 Date-Received: Sun, 15-Apr-84 00:53:33 EST Lines: 21 From: "Robert L. Krawitz" In response to both your questios: 1) A .com file is simply a binary file containing a Z-80 (or 8080) machine-language program. It should cold start at 100H. 2) Yes, there is a standard relocatable format. It is not in the .com file, however. The hex file ("object" file produced by the assembler) is what you want. Original Intel hex format doesn't define the necessary extensions, but there is a standard extension. Unfortunately, I do not remembe the proper format, but I shall look it up. It is consistent with the Intel hex, and an Intel loader will load the program, without the relocating information. It is not difficult to patch -- I've done it before. As usual, what is required is that the jumps be re-calculated -- patching the hex file won't do that. If you don't have a hex file, patching something is difficult. Of course, you could write a program to recalculate jumps, but you have to be careful not to munge data. Robert