Deutsch   English   Français   Italiano  
<op.2tqck1usg5icyz@myeee900>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Kerr-Mudd, John" <admin@127.0.0.1>
Newsgroups: alt.lang.asm,comp.os.msdos.programmer
Subject: Re: Base85 for DOS
Date: Sat, 07 Sep 2024 14:18:27 +0100
Organization: Dis
Lines: 60
Message-ID: <op.2tqck1usg5icyz@myeee900>
References: <20240820082846.a44b6e0f95e82795f6ee1691@127.0.0.1>
 <20240820122145.0102971381244b6e64d8497e@127.0.0.1>
 <20240820171008.13facddcd1b1ba4281812293@127.0.0.1>
 <20240822134442.73b8a77ee73d1b7ca8f324c7@127.0.0.1>
 <20240822175228.6210150984c5ad160be15a96@127.0.0.1>
 <20240822183456.6b8c806109dbb0db332750b8@127.0.0.1>
 <1cb0j0cqzrurg$.1kjnuuwvligmb.dlg@40tude.net> <vaa075$tj46$1@dont-email.me>
 <20240823201759.ec620f49efa79d1260d9f3b8@127.0.0.1>
 <vaat9i$11v5i$1@dont-email.me>
 <20240824083848.135ebdb7db71a3ef8899d7a5@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 07 Sep 2024 15:18:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="53dc1d65ac214af86b9019c8f68f7f73";
	logging-data="1467526"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18APkrUkeZln5vdfn1KX9U36onE4uqSvh4="
User-Agent: Opera Mail/12.15 (Win32)
Cancel-Lock: sha1:06uEl864bf+uWmLwQY66brW0KFw=
Bytes: 3915

On Sat, 24 Aug 2024 08:38:48 +0100, Kerr-Mudd, John <admin@127.0.0.1>  
wrote:

> On Fri, 23 Aug 2024 23:00:32 +0200
> wolfgang kern <nowhere@never.at> wrote:
>
>> On 23/08/2024 21:17, Kerr-Mudd, John wrote:
>> ...
>> >> back then (~1984..) there were several tools available.
>> >> I wrote one 1985  as a DOS-extender,
>> >> but we had no internet so it was never published.
>> >> you may find a lot of later attempts from many sources now:
>> >> "HEX2BIN" or similar names with .ASM,.OBJ,.COM or even .EXE.
>>
>> >> this task is/was that easy and short...
>> >> so whenever needed this few bytes can be written any time.
>>
>> > The 'problem' with debug output is that it has address prefixes and
>> > display values at the end that need stripping out to get pure hex.
>>
>> depending on file size limits part of the address field may be useful,
>> and the ASCII trail were just ignored by hex2bin.
>
> You have to code for it, or maybe you'd pick up displayed valid hex codes
>
>>
>> > I could post code in hex, if that's more acceptable - it's just easier
>> > for me to just CnP a debug dump.
>>
>> your style is readable for me (after eye recovers from wrong treatment).
>>
>> > I did hex2bin and v versa a while back; OK I'll revisit it to have a
>> > prog that does both.
>>
>> AFAIR early DOS had debug.com, later vsn debug.exe.
>> hex_dump options were a bit different.
>
> My xxd-r allows for both grdb and debug.exe dumps. I haven't tested it
> under earlier DOS versions with possibly different dump format.
>
>>
>> my OS contains only bin2hex as part of the implied debug+disass.
>> the address field vary with the chosen range and always show ASCII:
> :           1         2         3         4         5         6
>> 0123456789012345678901234567890123456789012345678901234567890123456789
>> xxxx_xxxx 00 01 02 03 04 05 06 07  08 09 0a 0b 0c 0d 0e 0f 8+1+8 chars.
>> so line length is 71 or 76 which fit into 80 char screens and .nws too.

> I think xxd-r should handle that; it relies on there being 16 (hex pairs
> +blank) +1 per line. Hmm, I should count pairs, not cols.
>
My latest won't cater for that format; it assumes that a double space  
implies end of hex pairs; it would fail in the middle of your output.

Counting down pairs might be better, but needs more coding to handle a  
short line at the end.


-- 
Bah, and indeed, Humbug