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 : 07. Aug 2024, 10:21:00
Autres entêtes
Organisation : Dis
Message-ID : <20240807102100.1a598201fcdcbc3301cad2de@127.0.0.1>
References : 1 2
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
On Tue, 6 Aug 2024 09:59:41 +0100
"Kerr-Mudd, John" <
admin@127.0.0.1> wrote:
[]
Hmm seems to be a problem on re-running;
morse<plain.txt
just get '.'
This was due to the rerun seeing a leftover -d parameter, as the PSP
isn't reset.
It works if any other (e.g. -e for encode) parm is explictly specified.
C:\TEMP>morse -e<plain.txt
- . . . . . - - . - . . - . . - . - . - . - - - . . - -
- . . . . - . - - - . - - - . . . - . - - - - . .
- .
- - - . . - - - . - - . . - . . . . - - . . - -
- . . . - . . - . - . . . . . . - . . . - -
- . . - . - - - . . - - - - - . . - . - . -
C:\TEMP>morse -e<plain.txt>morse.txt
C:\TEMP>morse -d<morse.txt
THE QUICK, BROWN FOX JUMPED? OVER THE LAZY DOG.
C:\TEMP>morse -e<plain.txt
- . . . . . - - . - . . - . . - . - . - . - - - . . - -
- . . . . - . - - - . - - - . . . - . - - - - . .
- .
- - - . . - - - . - - . . - . . . . - - . . - -
- . . . - . . - . - . . . . . . - . . . - -
- . . - . - - - . . - - - - - . . - . - . -
C:\TEMP>
-- Bah, and indeed Humbug.