adamm@encore.UUCP (Adam S. Moskowitz) (10/26/87)
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 . . ."
jv@mhres.mh.nl (Johan Vromans) (10/29/87)
In article <2081@encore.UUCP> adamm@encore.UUCP (Adam S. Moskowitz) writes: > > 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 I have a program I call 'zap' which has the functionality you require, but in a different way. It is portable (I use it in Unix, VMS and MS-DOS), and I consider it usefull. For those who can understand: it mimics the RT-11 'SIPP' program. If there is sufficient interest I'll send or post it. -- Johan Vromans | jv@mh.nl via European backbone Multihouse N.V., Gouda, the Netherlands | uucp: ..{?????!}mcvax!mh.nl!jv "It is better to light a candle than to curse the darkness"
allbery@ncoast.UUCP (Brandon Allbery) (11/01/87)
As quoted from <2081@encore.UUCP> by adamm@encore.UUCP (Adam S. Moskowitz): +--------------- | 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: +--------------- Egads! A NEWDOS/80 user in comp.unix.wizards! ;-) There are a number of these about. There is a program which converts a binary file to an ASCII one in a specified format (unfortunately, you must pick exactly ONE, you cannot have both hex and ASCII at the same time) and puts you in your favorite editor to edit it, then changes it back. I have written one which is a full-screen program to do this (I used to use NEWDOS too ;-), but currently the only copy extant is 40 pages of hardcopy and I'm not looking forward to typing it all in at the moment.... ;-) On the other hand, it comes in handy, so I may do it anyway. It also may exist in an archive somewhere; I don't remember if I posted it to the net, check for an archive listing in comp.sources.unix of "bed". (...of course, it might be someone else's editor instead of mine, but who cares?) -- Brandon S. Allbery necntc!ncoast!allbery@harvard.harvard.edu {harvard!necntc,well!hoptoad,sun!mandrill!hal,uunet!hnsurg3}!ncoast!allbery "Uncle _who_?" -- Lt. Worf ^^^^^^^^^^^^^ NOTE NEW PATH!
billr@tekred.TEK.COM (Bill Randle) (11/03/87)
There was a version of 'bed' (binary editor) posted to the net. I don't know which newsgroup, but the man page is dated June 1985 and it was written by somewon from the University of Lancaster in the U.K. [Sorry Brandon, I don't seem to have your version :-)] -Bill Randle Tektronix, Inc. billr@tekred.TEK.COM