home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,853 of 4,675   
   Kerr Mudd-John to James Harris   
   Re: Look back to "just for the H@ck"   
   19 Jul 17 08:10:55   
   
   From: notsaying@nospicedham.invalid.org   
      
   James Harris  wrote in news:okm0bq   
   $4vd$1@dont-email.me:   
      
   > On 18/07/2017 22:34, James Harris wrote:   
   >> On 18/07/2017 19:34, Kerr Mudd-John wrote:   
   >>> "wolfgang kern"  wrote in news:oklfc9$1lr5$1   
   >>> @gioia.aioe.org:   
   >>>   
   >>>>   
   >>>> James Harris asked:   
   >>>>   
   >>>>> How short was the (current) shortest solution?   
   >>>>   
   >>>> by adopting Kerr Mudd-John's decoder routine we are down to 209 byte   
   >>>> yet.   
   >>>> __   
   >>>> wolfgang   
   >>>>   
   >>>   
   >>> Depends on the spec; my shortest using only B64 chars is 246.   
   >>   
   >> OK. Whether 209 or 246 it's a substantial bit of code to write in   
   >> printable characters!   
   >   
   > On the size, has anyone looked at writing a normal base64 decoder,   
   > encoding it in a form which is easy to decode, and decoding it first.   
   By   
   > that I mean that at present I gather the source "text" will have the   
   > following   
   >   
   SMC:   
   >       
   >   
   > And I wonder if it would be shorter to change that to   
   >   
   2:1:   
   >       
   >   
   > The pre-decoder would convert just the base64 decoder to binary. The   
   > binary version of the base64 decoder would then decode the text. The   
   > pre-decoder would decode a simple format.   
   >   
   You might try running e.g. (246 byte 2:1)   
      
   ZRPRhp0XPR5p1PRRjL4hPa5LU1GJ1GLUX+G=1GeRSVG8+r6238wbt083t+RU=rY=   
   66Z2202Zffffff0222F6====MJ=20=17===eeee+++slOBI9UnEdoAasbaANE9E7   
   jelperHQE9sAjesuH8lpssMIG7asA9babaaGv7h8A7IdH9RKi8A9EGI8sCoAlpin   
   MIT9lpadITt7YoH9f7=tAm6CAHNIcNIZWxsbyB3b3JsZCEk=   
      
      
   through debug.   
      
   > On one hand, the base64 decoder might take up more room. On the other   
   it   
   > could use any asm instructions so might be shorter. (Some or all of the   
   > pad could be saved, too.)   
   >   
   >   
      
   These wheels have already been invented! - I know there's a lot of posts   
   to read but they're all there. The first describes what we (Wolfgang and   
   I anyway) call the SMC version; the latter the 2:1 version. (possibly   
   other primary decoders are possible; we didn't get very far from Terje's   
   "xor sub sub")   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca