Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!necntc!necis!encore!adamm From: adamm@encore.UUCP (Adam S. Moskowitz) Newsgroups: comp.sources.wanted,comp.unix.wizards Subject: Binary file patcher wanted Message-ID: <2081@encore.UUCP> Date: Mon, 26-Oct-87 15:56:34 EST Article-I.D.: encore.2081 Posted: Mon Oct 26 15:56:34 1987 Date-Received: Wed, 28-Oct-87 22:34:23 EST Organization: Encore Computer Corp, Marlboro, MA Lines: 28 Xref: mnetor comp.sources.wanted:2670 comp.unix.wizards:5127 I'm looking for a UN*X (actually, anything written in C will do) version of what is sometimes called "SuperZap". Basically I want a program that will let me edit binary files in this format: 005000: 40 35 00 00 0a 0a 0a 00 0a 0a 0a 45 6e 74 65 72 @5.........Enter 005010: 20 41 6d 6f 75 6e 74 20 2d 2d 3e 20 00 00 25 6c .Amount.-->...%l 005020: 66 25 2a 63 00 00 45 6e 74 65 72 20 6e 75 6d 62 f%*c..Enter.numb 005030: 65 72 20 6f 66 20 6d 6f 6e 74 68 73 20 2d 2d 3e er.of.months.--> 005040: 20 00 25 6c 66 25 2a 63 00 00 45 6e 74 65 72 20 ..%lf%*c..Enter. where the first column is the address within the file, the middle "block" is the hex representation of the file, and the right column is the ascii. I'd like to be able to move between the hex and ascii, overwriting as I go, and have the changes saved to either the same file or a different one. I don't require insert/delete capability, but that would be nice. Yes, I know I could use hd (the program I used to create the dump above), vi, and "un-hd", but that's too ugly. So, if anyone knows of a program to do what I need, please let me know. AdvTHANXance. P.S. - Please don't tell me that EMACS does this already. I need a small, *easily* ported program (for those times I have to work on (gasp) (whisper) non-UNIX machines. -- Adam S. Moskowitz ...!{decvax,ihnp4,linus,necntc,talcott}!encore!adamm "But Tigger said nothing because his mouth was full of haycorns . . ."