| Deutsch English Français Italiano |
|
<20240828092202.a48507d15d2467c0c8caa5cf@127.0.0.1> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!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: undump tool (was: Re: Base85 for DOS
Date: Wed, 28 Aug 2024 09:22:02 +0100
Organization: Dis
Lines: 59
Message-ID: <20240828092202.a48507d15d2467c0c8caa5cf@127.0.0.1>
References: <20240820082846.a44b6e0f95e82795f6ee1691@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>
<20240823091813.eaddd836eb9a8816e1c175d5@127.0.0.1>
<18v1n8ctjxu3q.1wjmagfoxytb2$.dlg@40tude.net>
<20240824094755.62c95c7b6136a03416ec3308@127.0.0.1>
<74y9504t69e3$.adfo04as0za3$.dlg@40tude.net>
<20240824213756.58b5683f4853e4d06088de61@127.0.0.1>
<20240825093716.80895e0b84ed656804701ceb@127.0.0.1>
<15aq55f7d5efw.1kxopi731ty75.dlg@40tude.net>
<20240825103442.68513f0b71e755a2e93fd464@127.0.0.1>
<20240825112000.67d644d37c6b5550e4349fc5@127.0.0.1>
<11pq8k1wym09o$.1d91sleinxiu8$.dlg@40tude.net>
<20240826132420.b8d4a0ec8ac8cfd1cd69b581@127.0.0.1>
<20240827081215.d296ac8b7b38cb9d3e8b3651@127.0.0.1>
<1l6p0ew98c6iy$.gu2sheh9gr05$.dlg@40tude.net>
<20240828085342.16f1c94c5aa1b26c2066f428@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 28 Aug 2024 10:22:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ea4ba5c3f78c337b0d7125ad23f19144";
logging-data="3580940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TyxZJ3NMMol6hF8Cw1MV+PqDE3IKJLG8="
Cancel-Lock: sha1:dE+rPubxsFv/knJwZiCrS8Xv9yE=
GNU: Terry Pratchett
;X-no-Archive: Maybe
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
SigSep: is ALWAYS dash dash space newline
Bytes: 3990
On Wed, 28 Aug 2024 08:53:42 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
> On Wed, 28 Aug 2024 09:17:20 +0700
> JJ <jj4public@outlook.com> wrote:
>
> > On Tue, 27 Aug 2024 08:12:15 +0100, Kerr-Mudd, John wrote:
> > > Last chance: could it be that in your environment ds<>es? - here's the same
> > > code with a push pop at the start & a few more exits if run out of text..
> >
> > No. It wouldn't be a DOS compatible system if DS!=ES at COM program startup.
> > So, same result in Windows XP. And I did tested it.
Well something was different - ah well, we got there.
> >
> > > 1E07B43F B5FDBAC3 01CD2191 E3F989D7 89D65781 3D2D6474 06B03EF2 AEE354B0
> > > 0AF2AEE3 26B020F2 AEE3208A 05473C30 7226244F D43788C2 8A054724 4FD43788
> > > D4D51088 04464974 0FE2E05A 89F129D1 43B440CD 214BEBAA 3C2075ED 380574BF
> > > EBE74E6F 74206120 64626720 66696C65 0D0A245A BA6201B4 09CD21C3
> >
> > This one works
>
> Phew!
>
>
> > but still require the `->` custom marker, which I don't want,
> > because it won't work for standard DEBUG dump from anyone.
>
>
> Oh dear. I felt sure I'd catered for that.
> So I just tested, yup, it's OK here.
>
>
The prog tests the first 2 chars of the input for '-d',
if so it is deemed to be a DOS DEBUG file, if not a scan for '>' is
performed to "check" for a GRDB one. if neither it puts out an error
message.
It is then assumed that the remaining lines of input are of
format:
[prelude][space] [set of hex pairs] [double space] [other stuff to eol]
where:
[prelude] is typically segaddr:offset but must have no embedded
spaces.
[set of hex pairs] is e.g. [01 02 03 04-AB CD ..] with either space or '-'
between the pairs (anything <'0' actually).
[other stuff to eol] *can* contain spaces, the prog just skips
until LF seen
{-q should get ignored}
Given that you have a H2B prog and 'debug' you can see for yourself the
simplicity of the code.
--
Bah, and indeed Humbug.