Groups | Search | Server Info | Keyboard shortcuts | Login | Register


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

Re: Base85 for DOS

From wolfgang kern <nowhere@never.at>
Newsgroups alt.lang.asm, comp.os.msdos.programmer
Subject Re: Base85 for DOS
Date 2024-08-24 10:13 +0200
Organization A noiseless patient Spider
Message-ID <vac4ni$1anso$1@dont-email.me> (permalink)
References (5 earlier) <20240822183456.6b8c806109dbb0db332750b8@127.0.0.1> <1cb0j0cqzrurg$.1kjnuuwvligmb.dlg@40tude.net> <vaa075$tj46$1@dont-email.me> <20240823201759.ec620f49efa79d1260d9f3b8@127.0.0.1> <20240824081519.bb631257a8ebf24f8285a44e@127.0.0.1>

Cross-posted to 2 groups.

Show all headers | View raw


On 24/08/2024 09:15, Kerr-Mudd, John wrote:
> On Fri, 23 Aug 2024 20:17:59 +0100
> "Kerr-Mudd, John" <admin@127.0.0.1> wrote:
> 
>> On Fri, 23 Aug 2024 14:44:20 +0200
>> wolfgang kern <nowhere@never.at> wrote:
>>
>>> On 23/08/2024 09:32, JJ asked:
>>>
>>>> BTW, was there a tool specifically for converting DEBUG's dump to binary? Or
>>>> converting it to a series of DEBUG's Edit command?
>>>
>>> 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.
>>
>> I could post code in hex, if that's more acceptable - it's just easier
>> for me to just CnP a debug dump.
>>
>> I did hex2bin and v versa a while back; OK I'll revisit it to have a
>> prog that does both.
> 
> Just Hex2Bin for debug typists!
> 
> BAC301B93CFEB43FCD2191E3F489D689D757AC3C30720E244FD43730F375054F
> 8A25D510AAE2EB5A89F929D143B440CD214BEBCF
> 
> (Is OK up to 62k, I think, might have problem with larger files if size
> odd, I haven't tested it- prog desn't allow for hex pair to be split over
> read boundary)
> 
>   e.g.
> hex2bin <hex2bin.hex >newh2bin.com
> 
> I *think* one can do
> 
> debug hex2bin.com
> e100 <Paste hex string>
> rcx 34 (check!)
> w
> q
> 
> (might be an input limit in debug, if so do CnP in smaller bits)

could work, but I'm afraid there is a much smaller size limit.

> Both : hex1a  (-d for dump, else assume input is display hex)

> B43FB552BAC301CD2191E3F989D6BF855457803E8300647529ACD41086E02704
> F01440AA4384F375F380E3BF7504B80D0AABE2E55AB30189F929D1B440CD214B
> EBBEAC3C30721709ED741288C295244FD43730F775F588D4D510AA31C095E2E2
> EBD2

> So latest Base85a
> 
> B43FB9C86EBAC301CD2191E3F989D689D701CFB355803E830064744E31C0ABAB
> BF757557AD86E095AD86E089C209E8750A80F9047205B07AAAEB1C51B9040052
> 31D295F7F39558F7F39250E2F252B105580421AAE2FA5983E90477C85AB30101
> F929D1B440CD214BEB96B87575ABABAA9757803C7A750931C0ABAB46E2F4E3DC
> 5131ED31D2B90500AC2C21721298505295F7E39558F7E301D55A01C283D500E2
> E79586E0AB9286E0AB5983E90577C3EBAB

even space(s) saved ...it's much harder to read than B4 3F B9 C8 6E
and for odd file size just fill up with NOP or SPACE until 512 bounds.
__
wolfgang

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