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,272 of 4,675   
   Kerr-Mudd,John to All   
   Re: Hex to bin   
   13 Feb 18 11:25:14   
   
   From: notsaying@nospicedham.invalid.org   
      
   On Thu, 08 Feb 2018 10:01:06 GMT, "wolfgang kern"    
   wrote:   
      
   For education and amusement I hereby present clax with a 5:4 (base85)   
   decoder for DOS! Same caveat; the 1st 2 lines (well up to and including   
   the eeeee string) must be "as is", reflowing (cr,lf spaces) should be OK   
   afterwards.   
      
   > Kerr-Mudd,John wrote:   
   []   
   >>>> I've gone with the "standard" set starting at 0x21;   
   []   
      
      
   Single and double quotes avoided (but not backquotes)   
   runs; 8 bytes more than 4 lines   
   in2PSP5e.com   
      
   ZRRjBhFUXP5FTPRR4tPj=aS-r.1Gq0g30GnjrUSF84rEwC270W-uNIu90fD0fP_=   
   66[F0Fc0Fa0F}0F~4L1FV1F[1Fk0fm0Fq,z1F]0F`0FgMMMeeeeUEq#MSX}<~t5,   
   !r.QSY`UPRUX50P]X50K;ZK^rUYKu[RUXD1z2PM:pnr;nb9nkSO8%.F5=$>)E&(dBl0`+iAGF   
   F`hhL~   
      
   3rd stage is a DOS redirect 5:4 decoder:   
      
   Tested with   
      
   in2psp5eCj@.4Gp$d7F!,L7@<6@)/0JDEF@3BB/F*&OCAfu2/AKYi(DIb:@FD,*)+C]U=@3BN#EcYf8ATD3s@q?d$AftVqCh   
   [NqF-FD5W8ARlolDIal(DIduD.RTpAKYo'+CT/5+Cei#   
   DII?(E,9)oF*2M7/c   
      
   taken from Wikipedia's example at   
   https://en.wikipedia.org/wiki/Ascii85#Example_for_Ascii85   
      
      
      
   >>>> 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)   

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


(c) 1994,  bbs@darkrealms.ca