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 : 08. Aug 2024, 21:25:31
Autres entêtes
Organisation : Dis
Message-ID : <20240808212531.3f868040f061fff73eaa6f3e@127.0.0.1>
References : 1 2
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
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.
-> d 100 lC8
1634:0100 B4 3F B5 7F-BA C8 01 CD-21 91 E3 4D-89 D6 BF E3 .?.....!..M.....
1634:0110 80 57 80 2E-83 00 64 74-41 BB 6D 01-51 AC B9 04 .W....dtA.m.Q...
1634:0120 00 3C 20 74-23 B1 01 72-1F 3C 61 72-02 24 DF D7 .< t#..r.<ar.$..
1634:0130 88 C2 B1 07-D0 E2 72 02-E2 FA B0 2E-D0 E2 1C 00 ......r.........
1634:0140 AA B0 20 AA-E2 F4 41 41-F2 AA 59 E2-CF 5A 89 F9 .. ...AA..Y..Z..
1634:0150 29 D1 BB 01-00 B4 40 CD-21 C3 B2 81-81 3C 20 20 )
.....@.!....<
1634:0160 AC 74 0D 3C-20 72 09 74-04 D0 E8 D0-D2 E2 ED 41 .t.< r.t.......A
1634:0170 08 D2 78 17-50 51 57 B9-2F 00 BF 99-01 88 D0 F2 ..x.PQW./.......
1634:0180 AE 97 2D 6E-01 5F 59 AA-58 B3 06 3C-20 75 05 4B ..-n._Y.X..< u.K
1634:0190 75 03 B3 06-AA E2 C3 EB-B4 73 00 55-32 3F 2F 27 u........s.U2?/'
1634:01A0 23 21 20 30-38 3C 3E 00-00 00 00 00-4C 00 05 18 #! 08<>.....L...
1634:01B0 1A 0C 02 12-0E 10 04 17-0D 14 07 06-0F 16 1D 0A ................
1634:01C0-08 03 09 11-0B 19 1B 1C ........
-> q
-- Bah, and indeed Humbug.