• Re: B64 in 256

    From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm,comp.os.msdos.programmer on Sun Sep 7 14:26:27 2025
    From Newsgroup: comp.os.msdos.programmer

    On Wed, 3 Sep 2025 09:26:42 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    an 8086 asm coded Base 64 encoder/decoder for DOS in <256 bytes (actually 166)

    Now trimmed to 160


    uses DOS INT 21 for StdIO.

    Decode:
    B64 -d <b64file.txt >decoded.fil
    chars below '+' (eg. cr,lf tab etc) are skipped, but otherwise not vetted.

    Encode: (no parm or any without a 'd' as second char)
    B64 [-e] <plain.fil >b64file.txt

    Encoded file has crlf every 72 output chars, last shortfall of a multiple
    of 3 is padded with '='.


    d 100 la0
    1634:0100 B4 3F BA C3-01 B9 00 6C-CD 21 95 09-ED 74 F4 89 .?.....l.!...t.. 1634:0110 D6 BF C5 6D-57 BA 12 06-A0 83 00 3C-64 74 4E 89 ...mW......<dtN. 1634:0120 1A 4E AD 86-E0 4E 41 41-D3 E8 24 3F-3C 1A 72 10 .N...NAA..$?<.r. 1634:0130 3C 34 72 0A-3C 3E 72 04-B0 2F 75 06-2C 4B 04 06 <4r.<>r../u.,K.. 1634:0140 04 41 AA 20-F1 75 DB B8-0D 0A FE CA-75 08 B2 12 .A. .u......u... 1634:0150 83 FD 02 76-01 AB 83 ED-03 77 C6 C7-03 3D 3D AB ...v.....w...==. 1634:0160 5A 43 89 F9-29 D1 B4 40-CD 21 4B EB-93 C6 02 3D ZC..)..@.!K....= 1634:0170 AC 3C 2B 72-21 2C 41 73-0A 04 45 3C-33 77 0A B0 .<+r!,As..E<3w.. 1634:0180 45 1C 00 3C-1A 72 02 2C-06 98 41 41-D3 E0 30 65 E..<.r.,..AA..0e 1634:0190 FF 20 F1 74-01 AA AC 3C-3D 75 D6 E3-C3 4F EB C0 . .t...<=u...O..
    q

    B43FBAC301B9006CCD219509ED74F489D6BFC56D57BA1206A083003C64744E89 1A4EAD86E04E4141D3E8243F3C1A72103C34720A3C3E7204B02F75062C4B0406 0441AA20F175DBB80D0AFECA7508B21283FD027601AB83ED0377C6C7033D3DAB 5A4389F929D1B440CD214BEB93C6023DAC3C2B72212C41730A04453C33770AB0 451C003C1A72022C06984141D3E03065FF20F17401AAAC3C3D75D6E3C34FEBC0


    tD+6wwG5AGzNIZUJ7XT0ida/xW1XuhIGoIMAPGR0TokaTq2G4E5BQdPoJD88GnIQPDRyCjw+ cgSwL3UGLEsEBgRBqiDxddu4DQr+ynUIshKD/QJ2AauD7QN3xscDPT2rWkOJ+SnRtEDNIUvr k8YCPaw8K3IhLEFzCgRFPDN3CrBFHAA8GnICLAaYQUHT4DBl/yDxdAGqrDw9ddbjw0/rwA==
    --
    Bah, and indeed Humbug.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm,comp.os.msdos.programmer on Tue Sep 9 15:47:14 2025
    From Newsgroup: comp.os.msdos.programmer

    On Sun, 7 Sep 2025 14:26:27 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Wed, 3 Sep 2025 09:26:42 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    an 8086 asm coded Base 64 encoder/decoder for DOS in <256 bytes (actually 166)

    Now trimmed to 160

    I've now pared off another 2. I think that's it.
    --
    Bah, and indeed, Humbug
    --- Synchronet 3.21a-Linux NewsLink 1.2