Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

It's not hard to admit errors that are [only] cosmetically wrong. -- J. K. Galbraith


devel / alt.lang.asm / Re: Kenny Code for DOS

SubjectAuthor
* Kenny Code for DOSKerr-Mudd, John
`* Re: Kenny Code for DOSKerr-Mudd, John
 `* Re: Kenny Code for DOSKerr-Mudd, John
  `* Re: Kenny Code for DOSwolfgang kern
   `* Re: Kenny Code for DOSKerr-Mudd, John
    `* Re: Kenny Code for DOSwolfgang kern
     `* Re: Kenny Code for DOSKerr-Mudd, John
      `- Re: Kenny Code for DOSKerr-Mudd, John

1
Kenny Code for DOS

<20230418222612.241ca70b3f6367231e797458@127.0.0.1>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=416&group=alt.lang.asm#416

 copy link   Newsgroups: alt.lang.asm comp.lang.asm.x86;comp.os.msdos.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86;comp.os.msdos.programmer
Subject: Kenny Code for DOS
Date: Tue, 18 Apr 2023 22:26:12 +0100
Organization: Dis
Lines: 35
Message-ID: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="1ab3f8972cd303b68796bbbb3a72dde4";
logging-data="3885223"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3lbK8X0yJcezCaPI6kJw3WGEJEFewxsI="
Cancel-Lock: sha1:iXtxpqnTxYtgGV8qWVrmYTJgjkE=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Tue, 18 Apr 2023 21:26 UTC

80 bytes of debug. Uses DOS int 0x21 for IO, using redirection.
so typical usage is
deken<kennytxt.txt

15k max input.

-> d 100 l50
1632:0100 BF 50 40 57-BA 50 01 B4-3F 89 C1 CD-21 89 D6 91 .P@W.P..?...!...
1632:0110 E3 3A BA 20-0F 31 C0 89-C5 F6 E6 01-C5 AC AA 20 .:. .1.........
1632:0120 C2 24 DF B3-04 4B 74 17-3A 87 4C 01-75 F7 4B 93 .$...Kt.:.L.u.K.
1632:0130 4F 80 EE 06-77 E3 01 E8-04 41 08 D0-AA 49 49 E2 O...w....A...II.
1632:0140 D1 B3 01 89-F9 5A 29 D1-B4 40 CD 21-C3 4D 50 46 .....Z)..@.!.MPF
-> q

Encoder: 72 bytes
max input <4k as kennycode for that would be c.15k

enken<plaintxt.txt>kenny.txt

->d 100 l50
1632:0100 BF 4A 40 57-BA 4A 01 B4-3F 89 C1 CD-21 89 D6 91 .J@W.J..?...!...
1632:0110 E3 34 BB 47-01 AC AA 24-DF 3C 5A 77-1B 2C 41 72 .4.G...$.<Zw.,Ar
1632:0120 17 BA 09 DF-4F 0A 35 98-F6 F2 D7 AA-88 E0 80 EA ....O.5.........
1632:0130 06 77 F4 D7-AA 20 75 FD-E2 DB BB 01-00 89 F9 5A .w... u........Z
1632:0140 29 D1 B4 40-CD 21 C3 4D-50 46 00 00-00 00 00 00 )..@.!.MPF......
->

Both assume al=0,bx=0 at start.

--
Bah, and indeed Humbug.

Re: Kenny Code for DOS

<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=417&group=alt.lang.asm#417

 copy link   Newsgroups: alt.lang.asm comp.lang.asm.x86;comp.os.msdos.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86;comp.os.msdos.programmer
Subject: Re: Kenny Code for DOS
Date: Tue, 18 Apr 2023 23:41:16 +0100
Organization: Dis
Lines: 45
Message-ID: <20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="0eb0814a02e17744641a6f538e3697b5";
logging-data="3904647"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vaeFLtvkfKeJnPnGjUVl8MI9vpizFdKk="
Cancel-Lock: sha1:z17bvUgF07zKARcgmlmr6wdzU0U=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
GNU: Terry Pratchett
;X-no-Archive: Maybe
 by: Kerr-Mudd, John - Tue, 18 Apr 2023 22:41 UTC

On Tue, 18 Apr 2023 22:26:12 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:

> 80 bytes of debug. Uses DOS int 0x21 for IO, using redirection.
> so typical usage is
> deken<kennytxt.txt
>
> 15k max input.
>
> -> d 100 l50
> 1632:0100 BF 50 40 57-BA 50 01 B4-3F 89 C1 CD-21 89 D6 91 .P@W.P..?...!...
> 1632:0110 E3 3A BA 20-0F 31 C0 89-C5 F6 E6 01-C5 AC AA 20 .:. .1.........
> 1632:0120 C2 24 DF B3-04 4B 74 17-3A 87 4C 01-75 F7 4B 93 .$...Kt.:.L.u.K.
> 1632:0130 4F 80 EE 06-77 E3 01 E8-04 41 08 D0-AA 49 49 E2 O...w....A...II.
> 1632:0140 D1 B3 01 89-F9 5A 29 D1-B4 40 CD 21-C3 4D 50 46 .....Z)..@.!.MPF
> -> q
>
>
>
>
> Encoder: 72 bytes
74
> max input <4k as kennycode for that would be c.15k
>
> enken<plaintxt.txt>kenny.txt
>

[]
Sorry that was a bad version of the encoder that didn't save Case
correctly; here's the right one:

-> d 100 l50
1632:0100 BF 4A 40 57-BA 4A 01 B4-3F 89 C1 CD-21 89 D6 91 .J@W.J..?...!...
1632:0110 E3 34 BB 47-01 AC AA 0C-20 3C 7A 77-1B 2C 61 72 .4.G.... <zw.,ar
1632:0120 17 4F BA 09-DF 0A 35 98-F6 F2 D7 AA-88 E0 80 EA .O....5.........
1632:0130 06 77 F4 D7-AA 20 75 FD-E2 DB BB 01-00 89 F9 5A .w... u........Z
1632:0140 29 D1 B4 40-CD 21 C3 6D-70 66 00 00-00 00 00 00 )..@.!.mpf......
-> q

> Both assume al=0,bx=0 at start.
>

--
Bah, and indeed Humbug.

Re: Kenny Code for DOS

<20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=418&group=alt.lang.asm#418

 copy link   Newsgroups: alt.lang.asm comp.lang.asm.x86;comp.os.msdos.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86;comp.os.msdos.programmer
Subject: Re: Kenny Code for DOS
Date: Wed, 19 Apr 2023 08:48:37 +0100
Organization: Dis
Lines: 51
Message-ID: <20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="a75297a2648b69644a099f07fdd9878a";
logging-data="4170633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WCuGIvwC0rELyrWyJuu+8Gk+BRfYKc2I="
Cancel-Lock: sha1:CWgIWO8TjZ1n4qWXcrO0jJC33CI=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
GNU: Terry Pratchett
;X-no-Archive: Maybe
 by: Kerr-Mudd, John - Wed, 19 Apr 2023 07:48 UTC

On Tue, 18 Apr 2023 23:41:16 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:

> On Tue, 18 Apr 2023 22:26:12 +0100
> "Kerr-Mudd, John" <admin@127.0.0.1> wrote:
>
> > 80 bytes of debug. Uses DOS int 0x21 for IO, using redirection.
> > so typical usage is
> > deken<kennytxt.txt
> >
> > 15k max input.
> >
lcase version for comparison with encoder

-> d 100 l49
1632:0100 B4 3F 89 C7-57 BA 49 01-B5 3D CD 21-89 D6 91 E3 .?..W.I..=.!....
1632:0110 34 BB 46 01-AC AA 0C 20-3C 7A 77 1B-2C 61 72 17 4.F.... <zw.,ar.
1632:0120 4F BA 09 DF-0A 35 98 F6-F2 D7 AA 88-E0 80 EA 06 O....5..........
1632:0130 77 F4 D7 AA-20 75 FD E2-DB BB 01 00-89 F9 5A 29 w... u........Z)
1632:0140 D1-B4 40 CD 21-C3 6D 70 66 ..@.!.mpf
-> q

> >
> >
> >
> >
> > Encoder:
> > enken<plaintxt.txt>kenny.txt
> >
>
> []

73 byte, but bigger buffer; OK up to 15k input

-> d 100 l49
1632:0100 B4 3F 89 C7-57 BA 49 01-B5 3D CD 21-89 D6 91 E3 .?..W.I..=.!....
1632:0110 34 BB 46 01-AC AA 0C 20-3C 7A 77 1B-2C 61 72 17 4.F.... <zw.,ar.
1632:0120 4F BA 09 DF-0A 35 98 F6-F2 D7 AA 88-E0 80 EA 06 O....5..........
1632:0130 77 F4 D7 AA-20 75 FD E2-DB BB 01 00-89 F9 5A 29 w... u........Z)
1632:0140 D1-B4 40 CD 21-C3 6D 70 66 ..@.!.mpf
-> q

> > Both assume al=0,bx=0 at start.
> >
>

Sorry about publishing too early.

--
Bah, and indeed Humbug.

Re: Kenny Code for DOS

<u1p1rv$3kc2$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=419&group=alt.lang.asm#419

 copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nowh...@never.at (wolfgang kern)
Newsgroups: alt.lang.asm
Subject: Re: Kenny Code for DOS
Date: Wed, 19 Apr 2023 17:37:33 +0200
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <u1p1rv$3kc2$1@dont-email.me>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
<20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
Reply-To: nowhere@never.at
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 19 Apr 2023 15:37:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2ce84848d60162c3f68886e152e9102f";
logging-data="119170"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zfzXfRiS2+dZ/eFB6r81pCE8s8mPQi5Y="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:W/SpCRhwu8rWJ/fyfSngJNLxJYY=
In-Reply-To: <20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
Content-Language: en-US
 by: wolfgang kern - Wed, 19 Apr 2023 15:37 UTC

On 19/04/2023 09:48, Kerr-Mudd, John wrote:

(removed CLAX and DOS)

>>> 80 bytes of debug. Uses DOS int 0x21 for IO, using redirection.
>>> so typical usage is
>>> deken<kennytxt.txt
>>>
>>> 15k max input.

> lcase version for comparison with encoder
> -> d 100 l49
> 1632:0100 B4 3F 89 C7-57 BA 49 01-B5 3D CD 21-89 D6 91 E3 .?..W.I..=.!....
> 1632:0110 34 BB 46 01-AC AA 0C 20-3C 7A 77 1B-2C 61 72 17 4.F.... <zw.,ar.
> 1632:0120 4F BA 09 DF-0A 35 98 F6-F2 D7 AA 88-E0 80 EA 06 O....5..........
> 1632:0130 77 F4 D7 AA-20 75 FD E2-DB BB 01 00-89 F9 5A 29 w... u........Z)
> 1632:0140 D1-B4 40 CD 21-C3 6D 70 66 ..@.!.mpf
> -> q

let me check if I can figure what this is supposed to do :)

100 B4 3F ;AH=3F
102 89 C7 ;DI=AX
104 57 ;PUSH DI
105 BA 49 01 ;DX=149 aka "mpf"
108 B5 3D ;CH=3D
10a CD 21 ;INT21
10c 89 D6 ;SI=DX
10e 91 ;AX<>CX
10f E3 34 ;JCXZ 145
111 BB 46 01 ;BX=146

114 AC ;LODSb (DS:SI)
115 AA ;STOSb (ES:DI)
116 0C 20 ;OR AL 20
118 3C 7A ;CMP 7A
11a 77 1B ;J> 137
11c 2C 61 ;SUB 61
11e 72 17 ;JC 137
120 4F ;DEC DI
121 BA 09 DF ;DX=DF09
124 0A 35 ;OR DH,[DI]

126 98 ;CBW
127 F6 F2 ;DIV DL
129 D7 ;XLAT
12a AA ;STOSb
12b 88-E0 ;AL=AH
12d 80 EA 06 ;SUB DL 6
130 77 F4 ;J> 126
132 D7 ;XLAT
133 AA ;STOSB
134 20 75 FD ;AND [DI-3],DH

137 E2 DB ;LOOP 114
139 BB 01 00 ;BX=1
13c 89 F9 ;CX=DI
13e 5A ;POP DX
13f 29 D1 ;SUB CX,DX
141 B4 40 ;AH=40
143 CD 21 ;INT21
145 C3 ;RET
146 text 6D 70 66

I have no idea and don't know anything about that encoding.
__
wolfgang

Re: Kenny Code for DOS

<20230419181041.d4bf8831ec027beec2ca1c45@127.0.0.1>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=420&group=alt.lang.asm#420

 copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm
Subject: Re: Kenny Code for DOS
Date: Wed, 19 Apr 2023 18:10:41 +0100
Organization: Dis
Lines: 42
Message-ID: <20230419181041.d4bf8831ec027beec2ca1c45@127.0.0.1>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
<20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
<u1p1rv$3kc2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="a75297a2648b69644a099f07fdd9878a";
logging-data="143480"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IjEvjwTK+zCHp497SNwxAzPbQPvasNxI="
Cancel-Lock: sha1:LzC4HyuQ0c2odmlX8KZ5CLzxG0U=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Wed, 19 Apr 2023 17:10 UTC

On Wed, 19 Apr 2023 17:37:33 +0200
wolfgang kern <nowhere@never.at> wrote:

>
>
> On 19/04/2023 09:48, Kerr-Mudd, John wrote:
>
> (removed CLAX and DOS)
>
> >>> 80 bytes of debug. Uses DOS int 0x21 for IO, using redirection.
> >>> so typical usage is
> >>> deken<kennytxt.txt
> >>>
> >>> 15k max input.
>
> > lcase version for comparison with encoder
> > -> d 100 l49
> > 1632:0100 B4 3F 89 C7-57 BA 49 01-B5 3D CD 21-89 D6 91 E3 .?..W.I..=.!....
> > 1632:0110 34 BB 46 01-AC AA 0C 20-3C 7A 77 1B-2C 61 72 17 4.F.... <zw.,ar.
> > 1632:0120 4F BA 09 DF-0A 35 98 F6-F2 D7 AA 88-E0 80 EA 06 O....5..........
> > 1632:0130 77 F4 D7 AA-20 75 FD E2-DB BB 01 00-89 F9 5A 29 w... u........Z)
> > 1632:0140 D1-B4 40 CD 21-C3 6D 70 66 ..@.!.mpf
> > -> q
>
> let me check if I can figure what this is supposed to do :)

Thanks for looking.
>
(excellent debugging snipped)

> I have no idea and don't know anything about that encoding.

Oh dear; the clue is in the header - it's Kenny code.

Explanations are present on the interwebs, such as:

https://www.dcode.fr/kenny-code-southpark

Fmmmfpmppmppfmmmfp!

--
Bah, and indeed Humbug.

Re: Kenny Code for DOS

<u1q3q6$cdcp$1@dont-email.me>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=421&group=alt.lang.asm#421

 copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nowh...@never.at (wolfgang kern)
Newsgroups: alt.lang.asm
Subject: Re: Kenny Code for DOS
Date: Thu, 20 Apr 2023 03:16:52 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <u1q3q6$cdcp$1@dont-email.me>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
<20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
<u1p1rv$3kc2$1@dont-email.me>
<20230419181041.d4bf8831ec027beec2ca1c45@127.0.0.1>
Reply-To: nowhere@never.at
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 20 Apr 2023 01:16:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="917ad30284f89c7842bc1d4cab9a8e28";
logging-data="406937"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pTGzqsWcZE14uQlRg9VEkVyDQ3jXgsTY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:RJ+iYFVnRRiy2oQVfV3riq8tZf4=
In-Reply-To: <20230419181041.d4bf8831ec027beec2ca1c45@127.0.0.1>
Content-Language: en-US
 by: wolfgang kern - Thu, 20 Apr 2023 01:16 UTC

On 19/04/2023 19:10, Kerr-Mudd, John wrote:

[]
>> I have no idea and don't know anything about that encoding.
> Oh dear; the clue is in the header - it's Kenny code.
> Explanations are present on the interwebs, such as:
> https://www.dcode.fr/kenny-code-southpark

> Fmmmfpmppmppfmmmfp!

never heard before, so it's just a trittle LUT-game:

A MMM 1 4D->0a
B MMP 1 50->0b
C MMF 1 46->0c
D MPM 2 and so on...
E MPP 2
F MPF 2
G MFM 3
H MFP 3
I MFF 3

J PMM 4
K PMP 4
L PMF 4
M PPM 5
N PPP 5
O PPF 5
P PFM 6
Q PFP 6
R PFF 6

S FMM 7
T FMP 7
U FMF 7
V FPM 8
W FPP 8
X FPF 8
Y FFM 9
Z FFP 9

for a decoder I'd use the first pair to get a group#, 9*2byte LUT
and then shift/mul/add the and/or transformed last letter. :)
__
wolfgang

Re: Kenny Code for DOS

<20230420101106.843d77e7527e8078f9ef48e4@127.0.0.1>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=422&group=alt.lang.asm#422

 copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm
Subject: Re: Kenny Code for DOS
Date: Thu, 20 Apr 2023 10:11:06 +0100
Organization: Dis
Lines: 108
Message-ID: <20230420101106.843d77e7527e8078f9ef48e4@127.0.0.1>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
<20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
<u1p1rv$3kc2$1@dont-email.me>
<20230419181041.d4bf8831ec027beec2ca1c45@127.0.0.1>
<u1q3q6$cdcp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="0db4eb6618adf2b272da589daa4aff38";
logging-data="586750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194orl5XLDrI2Tze/lwSWwS1Zndw/laV8c="
Cancel-Lock: sha1:yKPMIHN3cJ5/ZcUICi6iRWMGlqU=
GNU: Terry Pratchett
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
 by: Kerr-Mudd, John - Thu, 20 Apr 2023 09:11 UTC

On Thu, 20 Apr 2023 03:16:52 +0200
wolfgang kern <nowhere@never.at> wrote:

>
>
> On 19/04/2023 19:10, Kerr-Mudd, John wrote:
>
> []
> >> I have no idea and don't know anything about that encoding.
> > Oh dear; the clue is in the header - it's Kenny code.
> > Explanations are present on the interwebs, such as:
> > https://www.dcode.fr/kenny-code-southpark
>
> > Fmmmfpmppmppfmmmfp!
>
> never heard before, so it's just a trittle LUT-game:
- triple?
>
> A MMM 1 4D->0a
> B MMP 1 50->0b
> C MMF 1 46->0c
> D MPM 2 and so on...
> E MPP 2
> F MPF 2
> G MFM 3
> H MFP 3
> I MFF 3
>
> J PMM 4
> K PMP 4
> L PMF 4
> M PPM 5
> N PPP 5
> O PPF 5
> P PFM 6
> Q PFP 6
> R PFF 6
>
> S FMM 7
> T FMP 7
> U FMF 7
> V FPM 8
> W FPP 8
> X FPF 8
> Y FFM 9
> Z FFP 9

Don't forget the lowercase chars!
>
> for a decoder I'd use the first pair to get a group#, 9*2byte LUT
[]

Yeah, sure, a LUT is the easy way! I'm going for smallest code. OK I'll try
coding it for comparison.

I've rejigged my code, saving use of the bx register.

Kenny decoder for DOS in 77 bytes. Caveats:
15k max input, assumes bx=0 at start, uses DOS int 21 redirection for IO).

-> d 100 l50
1632:0100 B4 3F B5 BF-BA 4D 01 89-D6 BF 52 C0-57 CD 21 91 .?...M....R.W.!.
1632:0110 E3 37 BA 20-0F 31 C0 22-14 80 C2 41-F6 E6 00 C2 .7. .1."...A....
1632:0120 AC AA 0C 20-BD 04 00 4D-74 13 3A 86-49 01 75 F7 ... ...Mt.:.I.u.
1632:0130 4D 95 4F 80-EE 06 77 E4-00 D0 AA 49-49 E2 D3 43 M.O...w....II..C
1632:0140 89 F9 5A 29-D1 B4 40 CD-21 C3 6D 70-66 00 00 00 ..Z)..@.!.mpf...
-> q

Main body is:

1632:0112 BA 20 0F mov dx,0F20
1632:0115 31 C0 xor ax,ax
1632:0117 22 14 and dl,[si]
1632:0119 80 C2 41 add dl,41

1632:011C F6 E6 mul dh
1632:011E 00 C2 add dl,al
1632:0120 AC lodsb
1632:0121 AA stosb
1632:0122 0C 20 or al,20
1632:0124 BD 04 00 mov bp,0004
1632:0127 4D dec bp
1632:0128 74 13 jz 013D

1632:012A 3A 86 49 01 cmp al,[bp+0149]
1632:012E 75 F7 jnz 0127
1632:0130 4D dec bp
1632:0131 95 xchg ax,bp
1632:0132 4F dec di
1632:0133 80 EE 06 sub dh,06
1632:0136 77 E4 ja 011C

1632:0138 00 D0 add al,dl
1632:013A AA stosb
1632:013B 49 dec cx
1632:013C 49 dec cx

1632:013D E2 D3 loopw 0112

--
Bah, and indeed Humbug.

Re: Kenny Code for DOS

<20230420180135.b357468b011cef0edfd55bf8@127.0.0.1>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=423&group=alt.lang.asm#423

 copy link   Newsgroups: alt.lang.asm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm
Subject: Re: Kenny Code for DOS
Date: Thu, 20 Apr 2023 18:01:35 +0100
Organization: Dis
Lines: 92
Message-ID: <20230420180135.b357468b011cef0edfd55bf8@127.0.0.1>
References: <20230418222612.241ca70b3f6367231e797458@127.0.0.1>
<20230418234116.f1f2f9cd55630c6da163995f@127.0.0.1>
<20230419084837.7b37a12e04c2b0fa393f7fc2@127.0.0.1>
<u1p1rv$3kc2$1@dont-email.me>
<20230419181041.d4bf8831ec027beec2ca1c45@127.0.0.1>
<u1q3q6$cdcp$1@dont-email.me>
<20230420101106.843d77e7527e8078f9ef48e4@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="0db4eb6618adf2b272da589daa4aff38";
logging-data="725659"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Pxfp34tonIbW6pURjxMf1JuS82JYGWsc="
Cancel-Lock: sha1:jMxaZJhdeGdmA04dEH3eSubGGRw=
;X-no-Archive: Maybe
GNU: Terry Pratchett
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
 by: Kerr-Mudd, John - Thu, 20 Apr 2023 17:01 UTC

On Thu, 20 Apr 2023 10:11:06 +0100
"Kerr-Mudd, John" <admin@127.0.0.1> wrote:

> On Thu, 20 Apr 2023 03:16:52 +0200
> wolfgang kern <nowhere@never.at> wrote:
>
> >
> >
> > On 19/04/2023 19:10, Kerr-Mudd, John wrote:
> >
> > []
> > >> I have no idea and don't know anything about that encoding.
> > > Oh dear; the clue is in the header - it's Kenny code.
> > > Explanations are present on the interwebs, such as:
> > > https://www.dcode.fr/kenny-code-southpark
> >
> > > Fmmmfpmppmppfmmmfp!
> >
> > never heard before, so it's just a trittle LUT-game:
> - triple?
> >
> > A MMM 1 4D->0a
> > B MMP 1 50->0b
> > C MMF 1 46->0c
> > D MPM 2 and so on...
>[]

> >
> > for a decoder I'd use the first pair to get a group#, 9*2byte LUT
> []
>
> Yeah, sure, a LUT is the easy way! I'm going for smallest code. OK I'll try
> coding it for comparison.

My attempt at a word LUT version in at about 95 bytes, before looking
to cater for Case.
>
>
[]
> Kenny decoder for DOS in 77 bytes. Caveats:
> 15k max input, assumes bx=0 at start, uses DOS int 21 redirection for IO).
>
>
updated; I'd used old code that had a bug; the 'push di' needed to be
after the 'jcxz exit'; if no input read it'd probably crash on 'ret' to
whatever was in di.

-> d 100 l50
1632:0100 B4 3F B5 BF-BA 4D 01 89-D6 BF 52 C0-CD 21 91 E3 .?...M....R..!..
1632:0110 38 57 BA 20-0F 31 C0 22-14 80 C2 41-F6 E6 00 C2 8W. .1."...A....
1632:0120 AC AA 0C 20-BD 04 00 4D-74 13 3A 86-49 01 75 F7 ... ...Mt.:.I.u.
1632:0130 4D 95 4F 80-EE 06 77 E4-00 D0 AA 49-49 E2 D3 43 M.O...w....II..C
1632:0140 89 F9 5A 29-D1 B4 40 CD-21 C3 6D 70-66 00 00 00 ..Z)..@.!.mpf...
-> q

>
> Main body is:
(still the same)
>
> 1632:0112 BA 20 0F mov dx,0F20
> 1632:0115 31 C0 xor ax,ax
> 1632:0117 22 14 and dl,[si]
> 1632:0119 80 C2 41 add dl,41
>
> 1632:011C F6 E6 mul dh
> 1632:011E 00 C2 add dl,al
> 1632:0120 AC lodsb
> 1632:0121 AA stosb
> 1632:0122 0C 20 or al,20
> 1632:0124 BD 04 00 mov bp,0004
> 1632:0127 4D dec bp
> 1632:0128 74 13 jz 013D
>
> 1632:012A 3A 86 49 01 cmp al,[bp+0149]
> 1632:012E 75 F7 jnz 0127
> 1632:0130 4D dec bp
> 1632:0131 95 xchg ax,bp
> 1632:0132 4F dec di
> 1632:0133 80 EE 06 sub dh,06
> 1632:0136 77 E4 ja 011C
>
> 1632:0138 00 D0 add al,dl
> 1632:013A AA stosb
> 1632:013B 49 dec cx
> 1632:013C 49 dec cx
>
> 1632:013D E2 D3 loopw 0112
>

--
Bah, and indeed Humbug.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor