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 3,265 of 4,675   
   wolfgang kern to John   
   Re: Hex to bin   
   06 Feb 18 00:16:33   
   
   From: nowhere@never.at   
      
   Kerr-Mudd,John wrote:   
      
   >>>> when once everyone got such a tiny tool we could share binaries   
   >>>> of any size either RM or PM or LM.   
   ...   
   >> 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   
      
   Everyone could make his/her prefered tool, to convert a string inbetween two   
   quote marks into code bytes.   
      
   >> 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!   
      
   you see a problem with "<>|" ? aren't these only seen in replies ?   
   But yes, any origin post should avoid it as long they aren't part of code,   
   that's why I suggested Quotemarks (0x22) as always visible delimiters.   
      
   > 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.   
      
      
   My idea wasn't about an immediate implied conversion, my intention was to give   
   us (text only users) a chance to share code snips.   
   Yes, the whole idea behind is based on x86 32 bit at least.   
   And the decoder part may become just a short loop.   
   __   
   wolfgang   
      
   --- 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