Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #4491

Re: Base85 for DOS

From "Kerr-Mudd, John" <admin@127.0.0.1>
Newsgroups alt.lang.asm, comp.os.msdos.programmer
Subject Re: Base85 for DOS
Date 2024-09-07 14:18 +0100
Organization Dis
Message-ID <op.2tqck1usg5icyz@myeee900> (permalink)
References (6 earlier) <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>

Cross-posted to 2 groups.

Show all headers | View raw


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

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-20 08:28 +0100
  Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-20 12:21 +0100
    Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-20 17:10 +0100
      Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-22 13:44 +0100
        Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-22 17:52 +0100
          Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-22 18:34 +0100
            Re: Base85 for DOS JJ <jj4public@outlook.com> - 2024-08-23 14:32 +0700
              Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-23 09:16 +0100
              Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-23 09:18 +0100
                Re: Base85 for DOS JJ <jj4public@outlook.com> - 2024-08-24 05:36 +0700
                undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-24 09:47 +0100
                Re: undump tool (was: Re: Base85 for DOS JJ <jj4public@outlook.com> - 2024-08-25 00:18 +0700
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-24 21:37 +0100
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-25 09:37 +0100
                Re: undump tool (was: Re: Base85 for DOS JJ <jj4public@outlook.com> - 2024-08-25 15:59 +0700
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-25 10:34 +0100
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-25 11:20 +0100
                Re: undump tool (was: Re: Base85 for DOS JJ <jj4public@outlook.com> - 2024-08-26 01:44 +0700
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-26 13:24 +0100
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-27 08:12 +0100
                Re: undump tool (was: Re: Base85 for DOS JJ <jj4public@outlook.com> - 2024-08-28 09:17 +0700
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-28 08:53 +0100
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-28 09:22 +0100
                Re: undump tool (was: Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-09-02 14:13 +0100
              Re: Base85 for DOS wolfgang kern <nowhere@never.at> - 2024-08-23 14:44 +0200
                Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-23 20:17 +0100
                Re: Base85 for DOS wolfgang kern <nowhere@never.at> - 2024-08-23 23:00 +0200
                Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-24 08:38 +0100
                Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-09-07 14:18 +0100
                Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-24 08:15 +0100
                Re: Base85 for DOS wolfgang kern <nowhere@never.at> - 2024-08-24 10:13 +0200
                Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-24 14:14 +0100
                Re: Base85 for DOS wolfgang kern <nowhere@never.at> - 2024-08-24 18:18 +0200
                Re: Base85 for DOS "Kerr-Mudd, John" <admin@127.0.0.1> - 2024-08-24 14:32 +0100
                Re: Base85 for DOS wolfgang kern <nowhere@never.at> - 2024-08-24 18:34 +0200

csiph-web