• Re: undump tool (was: Re: Base85 for DOS

    From Kerr-Mudd, John@3:633/10 to All on Wednesday, July 15, 2026 15:23:59
    On Mon, 2 Sep 2024 14:13:00 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Wed, 28 Aug 2024 09:22:02 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    []



    Now scans for a '-' prompt (skips a '>' if it's next) then allows
    for spaces between the prompt and 'd'/'D'.

    134 bytes

    d 100 l86
    16B1:0100 B4 3F B5 FD-BA 86 01 CD-21 91 E3 68-89 D7 89 D6 .?......!..h.... 16B1:0110 57 B0 2D F2-AE 75 55 80-3D 3E 75 02-47 49 B0 20 W.-..uU.=>u.GI. 16B1:0120 F3 AE 0A 45-FF 3C 64 75-E8 B0 0A F2-AE E3 28 83 ...E.<du......(. 16B1:0130 C7 09 83 E9-09 76 20 8A-05 47 3C 30-72 24 24 4F .....v ..G<0r$$O 16B1:0140 D4 37 88 C2-8A 05 47 24-4F D4 37 88-D4 D5 10 88 .7....G$O.7..... 16B1:0150 04 46 49 74-02 E2 E0 5A-89 F1 29 D1-43 B4 40 CD .FIt...Z..).C.@. 16B1:0160 21 C3 3C 20-75 EF 38 05-74 BF EB E9-5A BA 75 01 !.< u.8.t...Z.u. 16B1:0170 B4 09 CD 21-C3 4E 6F 74-20 61 20 64-62 67 20 66 ...!.Not a dbg f 16B1:0180 69-6C 65 0D 0A-24 ile..$
    q


    Avoids address by moving di ptr +9 after lf. (grdb outputs last line can
    put a '-' between the address and 1st hex, scanning for a space missed
    that pair).

    Revisited - std si as input ptr, di for output

    d 100 l80
    16B1:0100 B4 3F B5 FE-BA 80 01 CD-21 91 E3 59-52 89 D6 89 .?......!..YR... 16B1:0110 D7 81 3C 2D-64 74 07 AC-3C 3E E0 FB-E3 3F AC 3C ..<-dt..<>...?.< 16B1:0120 0A E0 FB E3-2B AC 3C 20-E0 FB E3 24-81 3C 20 20 ....+.< ...$.< 16B1:0130 74 EC AC 3C-30 72 17 3C-46 77 13 24-4F D4 37 88 t..<0r.<Fw.$O.7. 16B1:0140 C2 AC 24 4F-D4 37 88 D4-D5 10 AA 49-74 02 E2 DC ..$O.7.....It... 16B1:0150 5A 89 F9 29-D1 43 B4 40-CD 21 4B EB-A3 5A BA 66 Z..).C.@.!K..Z.f 16B1:0160 01 B4 09 CD-21 C3 4E 6F-74 20 61 20-64 62 67 20 ....!.Not a dbg 16B1:0170 66 69 6C 65-0D 0A 24 4D-4A 20 32 30-32 36 0D 0A file..$MJ 2026..
    q

    --
    Bah, and indeed Humbug.

    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kerr-Mudd, John@3:633/10 to All on Thursday, July 16, 2026 11:54:19
    On Wed, 15 Jul 2026 15:23:59 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Mon, 2 Sep 2024 14:13:00 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Wed, 28 Aug 2024 09:22:02 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    []



    Now scans for a '-' prompt (skips a '>' if it's next) then allows
    for spaces between the prompt and 'd'/'D'.

    134 bytes

    d 100 l86
    16B1:0100 B4 3F B5 FD-BA 86 01 CD-21 91 E3 68-89 D7 89 D6 .?......!..h.... 16B1:0110 57 B0 2D F2-AE 75 55 80-3D 3E 75 02-47 49 B0 20 W.-..uU.=>u.GI. 16B1:0120 F3 AE 0A 45-FF 3C 64 75-E8 B0 0A F2-AE E3 28 83 ...E.<du......(. 16B1:0130 C7 09 83 E9-09 76 20 8A-05 47 3C 30-72 24 24 4F .....v ..G<0r$$O 16B1:0140 D4 37 88 C2-8A 05 47 24-4F D4 37 88-D4 D5 10 88 .7....G$O.7..... 16B1:0150 04 46 49 74-02 E2 E0 5A-89 F1 29 D1-43 B4 40 CD .FIt...Z..).C.@. 16B1:0160 21 C3 3C 20-75 EF 38 05-74 BF EB E9-5A BA 75 01 !.< u.8.t...Z.u. 16B1:0170 B4 09 CD 21-C3 4E 6F 74-20 61 20 64-62 67 20 66 ...!.Not a dbg f 16B1:0180 69-6C 65 0D 0A-24 ile..$
    q


    Avoids address by moving di ptr +9 after lf. (grdb outputs last line can put a '-' between the address and 1st hex, scanning for a space missed
    that pair).

    Revisited - std si as input ptr, di for output

    d 100 l80
    16B1:0100 B4 3F B5 FE-BA 80 01 CD-21 91 E3 59-52 89 D6 89 .?......!..YR... 16B1:0110 D7 81 3C 2D-64 74 07 AC-3C 3E E0 FB-E3 3F AC 3C ..<-dt..<>...?.< 16B1:0120 0A E0 FB E3-2B AC 3C 20-E0 FB E3 24-81 3C 20 20 ....+.< ...$.< 16B1:0130 74 EC AC 3C-30 72 17 3C-46 77 13 24-4F D4 37 88 t..<0r.<Fw.$O.7. 16B1:0140 C2 AC 24 4F-D4 37 88 D4-D5 10 AA 49-74 02 E2 DC ..$O.7.....It... 16B1:0150 5A 89 F9 29-D1 43 B4 40-CD 21 4B EB-A3 5A BA 66 Z..).C.@.!K..Z.f 16B1:0160 01 B4 09 CD-21 C3 4E 6F-74 20 61 20-64 62 67 20 ....!.Not a dbg 16B1:0170 66 69 6C 65-0D 0A 24 4D-4A 20 32 30-32 36 0D 0A file..$MJ 2026..
    q


    Problem will occur on reread after 64k/78(ll) *16 (bytes per line) of
    input, so max com file that can be reconstructed with this code is ~12k.

    I'm working on it.


    --
    Bah, and indeed Humbug.

    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From jayjwa@3:633/10 to All on Friday, July 17, 2026 21:49:05
    "Kerr-Mudd, John" <admin@127.0.0.1> writes:

    Revisited - std si as input ptr, di for output

    d 100 l80
    16B1:0100 B4 3F B5 FE-BA 80 01 CD-21 91 E3 59-52 89 D6 89 .?......!..YR... >> 16B1:0110 D7 81 3C 2D-64 74 07 AC-3C 3E E0 FB-E3 3F AC 3C ..<-dt..<>...?.< >> 16B1:0120 0A E0 FB E3-2B AC 3C 20-E0 FB E3 24-81 3C 20 20 ....+.< ...$.< >> 16B1:0130 74 EC AC 3C-30 72 17 3C-46 77 13 24-4F D4 37 88 t..<0r.<Fw.$O.7. >> 16B1:0140 C2 AC 24 4F-D4 37 88 D4-D5 10 AA 49-74 02 E2 DC ..$O.7.....It... >> 16B1:0150 5A 89 F9 29-D1 43 B4 40-CD 21 4B EB-A3 5A BA 66 Z..).C.@.!K..Z.f >> 16B1:0160 01 B4 09 CD-21 C3 4E 6F-74 20 61 20-64 62 67 20 ....!.Not a dbg >> 16B1:0170 66 69 6C 65-0D 0A 24 4D-4A 20 32 30-32 36 0D 0A file..$MJ 2026.. >> -> q
    Why not post the source code? It's easier than entering text directly
    into debug (if that is indeed what you're doing).

    --
    PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
    "The Internet should always be the Wild West!"

    --- PyGate Linux v1.5.18
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kerr-Mudd, John@3:633/10 to All on Wednesday, July 29, 2026 20:43:09
    On Fri, 17 Jul 2026 21:49:05 -0400
    jayjwa <jayjwa@atr2.ath.cx.invalid> wrote:

    "Kerr-Mudd, John" <admin@127.0.0.1> writes:

    Revisited - std si as input ptr, di for output

    d 100 l80
    16B1:0100 B4 3F B5 FE-BA 80 01 CD-21 91 E3 59-52 89 D6 89 .?......!..YR...
    16B1:0110 D7 81 3C 2D-64 74 07 AC-3C 3E E0 FB-E3 3F AC 3C ..<-dt..<>...?.<
    16B1:0120 0A E0 FB E3-2B AC 3C 20-E0 FB E3 24-81 3C 20 20 ....+.< ...$.<
    16B1:0130 74 EC AC 3C-30 72 17 3C-46 77 13 24-4F D4 37 88 t..<0r.<Fw.$O.7.
    16B1:0140 C2 AC 24 4F-D4 37 88 D4-D5 10 AA 49-74 02 E2 DC ..$O.7.....It...
    16B1:0150 5A 89 F9 29-D1 43 B4 40-CD 21 4B EB-A3 5A BA 66 Z..).C.@.!K..Z.f
    16B1:0160 01 B4 09 CD-21 C3 4E 6F-74 20 61 20-64 62 67 20 ....!.Not a dbg
    16B1:0170 66 69 6C 65-0D 0A 24 4D-4A 20 32 30-32 36 0D 0A file..$MJ 2026..
    q
    Why not post the source code? It's easier than entering text directly
    into debug (if that is indeed what you're doing).

    erm that's what this tool is supposed to do!

    --
    Bah, and indeed Humbug.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kerr-Mudd, John@3:633/10 to All on Wednesday, July 29, 2026 20:58:08
    On Thu, 16 Jul 2026 11:54:19 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Wed, 15 Jul 2026 15:23:59 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Mon, 2 Sep 2024 14:13:00 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Wed, 28 Aug 2024 09:22:02 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    []



    Now scans for a '-' prompt (skips a '>' if it's next) then allows
    for spaces between the prompt and 'd'/'D'.


    Problem will occur on reread after 64k/78(ll) *16 (bytes per line) of
    input, so max com file that can be reconstructed with this code is ~12k.

    I'm working on it.

    Needed extra code taking it beyond 80h bytes, so I added some help in.
    tested OK on reconstructing a 143k text dump back to 40k

    -d 100 l100
    0C6A:0100 BA AB 01 80 3E 83 00 3F-74 7F 31 ED B4 3F B5 FD ....>..?t.1..?.. 0C6A:0110 CD 21 91 E3 74 89 D6 89-D7 B3 1F AC 49 3C 2D 74 .!..t.......I<-t 0C6A:0120 09 4B 4B AC 3C 3E E0 FB-75 70 AC 3C 20 E1 FB 3C .KK.<>..up.< ..< 0C6A:0130 64 75 67 AC 3C 3A E0 FB-83 C6 05 83 E9 05 3A 04 dug.<:........:. 0C6A:0140 74 4C AC 3C 30 72 1B 3C-46 77 17 09 ED 74 12 88 tL.<0r.<Fw...t.. 0C6A:0150 05 95 24 4F D4 37 30 F7-75 F5 8A 25 D5 10 AA 31 ..$O.70.u..%...1 0C6A:0160 C0 95 E2 DA 31 F6 89 F9-29 D1 50 53 B3 01 B4 40 ....1...).PS...@ 0C6A:0170 CD 21 B4 3F 4B B5 FD CD-21 91 5B 58 E3 0F 29 F1 .!.?K...!.[X..). 0C6A:0180 01 D6 89 D7 EB B8 BA 9A-01 B4 09 CD 21 C3 01 DE ............!... 0C6A:0190 29 D9 77 AA F7 D9 89 CE-EB CC 4E 6F 74 20 61 20 ).w.......Not a 0C6A:01A0 64 62 67 20 66 69 6C 65-0D 0A 24 55 73 61 67 65 dbg file..$Usage 0C6A:01B0 20 69 73 3A 0D 0A 20 75-6E 64 65 62 75 67 3C 73 is:.. undebug<s 0C6A:01C0 72 63 2E 64 6D 70 3E 6F-75 74 2E 63 6F 6D 0D 0A rc.dmp>out.com.. 0C6A:01D0 0A 20 6F 72 0D 0A 0A 20-75 6E 64 65 62 75 67 20 . or... undebug 0C6A:01E0 2D 3F 0D 0A 5B 73 68 6F-77 73 20 74 68 69 73 20 -?..[shows this 0C6A:01F0 6D 73 67 5D 0D 0A 24 4D-4A 20 32 30 32 36 0D 0A msg]..$MJ 2026.. -q

    --
    Bah, and indeed Humbug.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Johann 'Myrkraverk' Oskarsson@3:633/10 to All on Thursday, July 30, 2026 03:54:15
    On 30/07/2026 3:43 AM, Kerr-Mudd, John wrote:
    On Fri, 17 Jul 2026 21:49:05 -0400
    jayjwa <jayjwa@atr2.ath.cx.invalid> wrote:

    "Kerr-Mudd, John" <admin@127.0.0.1> writes:

    Revisited - std si as input ptr, di for output

    d 100 l80
    16B1:0100 B4 3F B5 FE-BA 80 01 CD-21 91 E3 59-52 89 D6 89 .?......!..YR...
    16B1:0110 D7 81 3C 2D-64 74 07 AC-3C 3E E0 FB-E3 3F AC 3C ..<-dt..<>...?.<
    16B1:0120 0A E0 FB E3-2B AC 3C 20-E0 FB E3 24-81 3C 20 20 ....+.< ...$.< >>>> 16B1:0130 74 EC AC 3C-30 72 17 3C-46 77 13 24-4F D4 37 88 t..<0r.<Fw.$O.7.
    16B1:0140 C2 AC 24 4F-D4 37 88 D4-D5 10 AA 49-74 02 E2 DC ..$O.7.....It...
    16B1:0150 5A 89 F9 29-D1 43 B4 40-CD 21 4B EB-A3 5A BA 66 Z..).C.@.!K..Z.f
    16B1:0160 01 B4 09 CD-21 C3 4E 6F-74 20 61 20-64 62 67 20 ....!.Not a dbg >>>> 16B1:0170 66 69 6C 65-0D 0A 24 4D-4A 20 32 30-32 36 0D 0A file..$MJ 2026..
    q
    Why not post the source code? It's easier than entering text directly
    into debug (if that is indeed what you're doing).

    erm that's what this tool is supposed to do!


    I don't begrudge people their hobbies. HEX code used to be
    distributed in physical DOS magazines now and then. I think
    I only encountered it once, and managed to type it and and get
    it to work. Unfortunately, I had no idea how to learn any of
    it, because I was a country boy and didn't have access to a
    good library with DOS programming books.


    Why not let people distribute their code in binary hex?
    --
    Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
    I'm not from the Internet, I just work there. | via Easynews.com

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Johann 'Myrkraverk' Oskarsson@3:633/10 to All on Thursday, July 30, 2026 04:04:04
    On 30/07/2026 3:43 AM, Kerr-Mudd, John wrote:
    On Fri, 17 Jul 2026 21:49:05 -0400
    jayjwa <jayjwa@atr2.ath.cx.invalid> wrote:

    "Kerr-Mudd, John" <admin@127.0.0.1> writes:

    Revisited - std si as input ptr, di for output

    d 100 l80
    16B1:0100 B4 3F B5 FE-BA 80 01 CD-21 91 E3 59-52 89 D6 89 .?......!..YR...
    16B1:0110 D7 81 3C 2D-64 74 07 AC-3C 3E E0 FB-E3 3F AC 3C ..<-dt..<>...?.<
    16B1:0120 0A E0 FB E3-2B AC 3C 20-E0 FB E3 24-81 3C 20 20 ....+.< ...$.< >>>> 16B1:0130 74 EC AC 3C-30 72 17 3C-46 77 13 24-4F D4 37 88 t..<0r.<Fw.$O.7.
    16B1:0140 C2 AC 24 4F-D4 37 88 D4-D5 10 AA 49-74 02 E2 DC ..$O.7.....It...
    16B1:0150 5A 89 F9 29-D1 43 B4 40-CD 21 4B EB-A3 5A BA 66 Z..).C.@.!K..Z.f
    16B1:0160 01 B4 09 CD-21 C3 4E 6F-74 20 61 20-64 62 67 20 ....!.Not a dbg >>>> 16B1:0170 66 69 6C 65-0D 0A 24 4D-4A 20 32 30-32 36 0D 0A file..$MJ 2026..
    q
    Why not post the source code? It's easier than entering text directly
    into debug (if that is indeed what you're doing).

    erm that's what this tool is supposed to do!


    I don't begrudge people their hobbies. HEX code used to be
    distributed in physical DOS magazines now and then. I think
    I only encountered it once, and managed to type it and and get
    it to work. Unfortunately, I had no idea how to learn any of
    it, because I was a country boy and didn't have access to a
    good library with DOS programming books.


    Why not let people distribute their code in binary hex?
    --
    Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
    I'm not from the Internet, I just work there. | via Easynews.com

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)