Sujet : Re: Morse Code for DOS
De : admin (at) *nospam* 127.0.0.1 (Kerr-Mudd, John)
Groupes : comp.os.msdos.programmer alt.lang.asmDate : 10. Aug 2024, 14:34:11
Autres entêtes
Organisation : Dis
Message-ID : <20240810143411.b3e5007a37d736c8eb140d23@127.0.0.1>
References : 1 2 3
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
On Thu, 8 Aug 2024 21:25:31 +0100
"Kerr-Mudd, John" <
admin@127.0.0.1> wrote:
On Wed, 7 Aug 2024 21:29:49 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
On Fri, 2 Aug 2024 09:40:59 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:
203 bytes
[]
204 bytes; copies over cr/lf from infile to output (above version
converts them to spaces)
[]
Usage as before:
morse [-e]<plain.txt>dotdash.txt
or
morse -d<dotdash.txt>plain.txt
-e only required on rerun after -d
Now 200 bytes: I think that's as low as I can get it.
Decode: No validation of morse input; anything above 0x20 gets its LSB
'decoded' as dash if 1, dot if 0.
I lied; now 197 bytes.
-> d 100 lC5
1634:0100 B4 3F B5 7F-BA C5 01 CD-21 91 E3 4C-89 D6 BF E2 .?.....!..L.....
1634:0110 80 57 80 2E-83 00 64 74-6F BB 2D 01-51 AC 31 C9 .W....dto.-.Q.1.
1634:0120 3C 20 72 22-B1 04 74 1F-3C 61 72 02-24 DF D7 88 < r"..t.<ar.$...
1634:0130 C2 B1 07 D0-E2 72 02 E2-FA B0 2E D0-E2 1C 00 AA .....r..........
1634:0140 B0 20 AA E2-F4 41 41 F2-AA 59 E2 D0-5A 89 F9 29 . ...AA..Y..Z..)
1634:0150 D1 BB 01 00-B4 40 CD 21-C3 73 00 55-32 3F 2F 27
.....@.!.s.U2?/'
1634:0160 23 21 20 30-38 3C 3E 00-00 00 00 00-4C 00 05 18 #! 08<>.....L...
1634:0170 1A 0C 02 12-0E 10 04 17-0D 14 07 06-0F 16 1D 0A ................
1634:0180 08 03 09 11-0B 19 1B 1C-B2 81 81 3C-20 20 AC 74 ...........< .t
1634:0190 0F B3 06 3C-20 72 09 74-04 D0 E8 D0-D2 E2 EB 41 ...< r.t.......A
1634:01A0 08 D2 78 15-50 51 57 B9-2F 00 BF 59-01 88 D0 F2 ..x.PQW./..Y....
1634:01B0 AE 97 2D 2E-01 5F 59 AA-58 3C 20 75-03 4B 75 01 ..-.._Y.X< u.Ku.
1634:01C0 AA-E2 C5 EB 87 .....
-> q
-- Bah, and indeed Humbug.