From: notsaying@nospicedham.invalid.org   
      
   On Sun, 31 Dec 2017 13:06:01 GMT, "wolfgang kern"    
   wrote:   
      
   >   
   > rugxulo wrote:   
   >   
   >> Hi,   
   >   
   > Hello,   
   >   
   >>> when once everyone got such a tiny tool we could share binaries   
   >>> of any size either RM or PM or LM.   
   >   
   >> With all due respect, you're already assuming an OS.   
   >   
   > of course :) how else could it be read from internet ?   
   >   
   >> So who doesn't already have "something" to script/compile/assemble   
   >> with?   
   >   
   > Such TEXT2BIN and BIN2TEXT converters would work with any x86 OS and   
   > may just need an assembler to built it. It doesn't need much, so it   
   > could be inlined as well.   
   []   
   Not really; you need to be able to write to file, IMO, and this means DOS   
   int 21 or linux int 80   
      
   >   
   > a 5:4 BIN2TEXT encoder takes four bytes from source and make five   
   > printable characters out of it.   
   > ie: (my suggestion)   
   > the binaries are converted into characters 0x23..0x78 only.   
      
   I've gone with the "standard" set starting at 0x21; your method avoids   
   double quotes but not single (or pipe symbols <>|). To substitute awkward   
   ones, costs me erm - too many bytes!   
      
   I have something that's close to working in 6 lines; it has the usual pre-   
   amble to set registers with a popa, my usual copy to early PSP, and markup   
   and execute; the routine copied is the 5:4 decoder, this then decodes the   
   fileio routine which itself calls the decoder in PSP.   
      
   It could probably be done much more easily using 32bit registers.   
      
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|