Sujet : Re: Small(est?) Hexdump/reconstruction DOS programs
De : admin (at) *nospam* 127.0.0.1 (Kerr-Mudd, John)
Groupes : alt.lang.asm comp.os.msdos.programmerDate : 11. Sep 2024, 16:37:50
Autres entêtes
Organisation : Dis
Message-ID : <20240911163750.3b876975e2f7438526cbe844@127.0.0.1>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
On Tue, 10 Sep 2024 20:19:29 +0100
"Kerr-Mudd, John" <
admin@127.0.0.1> wrote:
On Mon, 9 Sep 2024 09:32:20 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
On Sun, 8 Sep 2024 21:41:09 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
On Mon, 01 Jul 2024 11:37:50 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
On Tue, 18 Jun 2024 03:58:55 +0100, wolfgang kern <nowhere@never.at> wrote:
On 17/06/2024 21:57, Kerr-Mudd, John wrote:
...
[]
>
hexdump, I mean bin2hex:
[]
hex 223 bytes;
now can produce 5 spaced formats for dump, also does hex2bin, and
contains (a minimal) usage help text.
C:\TEMP>hex -d 0 <hex.com
A083003C68747831EDB43FB53CBADF01CD2191E30389D6BFC33F57A083003C6
Argh! Last character on line is dropped!
More Work Needed.
Had to trim the text at the end to add code to not delete last char on
line (ususally a trailing blank) if parm was 0
Better to just prt crlf and skip the space test at linewidth.
-> d 100 lDE
16B1:0100 A0 83 00 3C-68 74 79 31-ED B4 3F B5-3C BA DF 01 ...<hty1..?.<...
16B1:0110 CD 21 91 E3-03 89 D6 BF-C3 3F 57 A0-83 00 3C 64 .!.......?W...<d
16B1:0120 75 3E A0 85-00 83 E0 0F-48 88 C6 75-02 B2 EF AC u>......H..u....
16B1:0130 43 D4 10 86-E0 27 04 F0-14 40 AA 30-CF 75 F4 20 C....'
...@.0.u. 16B1:0140 D3 75 06 B8-0D 0A AB EB-07 84 F3 75-03 B0 20 AA .u.........u.. .
16B1:0150 E2 DD 5A B3-01 89 F9 29-D1 B4 40 CD-21 4B EB A9 ..Z....)
..@.!K..
16B1:0160 AC 3C 30 72-17 09 ED 74-12 88 C6 95-24 4F D4 37 .<0r...t....$O.7
16B1:0170 30 CF 75 F5-88 F4 D5 10-AA 31 C0 95-E2 E2 EB D2 0.u......1......
16B1:0180 B4 09 BA 88-01 CD 21 C3-55 73 61 67-65 20 69 73 ......!.Usage is
16B1:0190 3A 0D 0A 68-65 78 20 2D-64 20 5B 73-70 5D 3C 66 :..hex -d [sp]<f
16B1:01A0 6E 2E 63 6F-6D 0D 0A 20-73 70 3D 7B-30 2C 31 2C n.com.. sp={0,1,
16B1:01B0 32 2C 34 2C-38 7D 0D 0A-6F 72 0D 0A-68 65 78 20 2,4,8}..or..hex
16B1:01C0 2D 72 3C 66-6E 2E 68 65-78 3E 66 6E-2E 63 6F 6D -r<fn.hex>fn.com
16B1:01D0 0D 0A-24 47 50 4C-20 4D 4A 20-32 30 32 34 ..$GPL MJ 2024
-> q