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,880 of 4,675   
   Kerr-Mudd,John to notsaying@nospicedham.invalid.org   
   Re: duplicates   
   08 May 19 15:04:14   
   
   From: notsaying@nospicedham.invalid.org   
      
   On Wed, 01 May 2019 09:22:00 GMT, "Kerr-Mudd,John"   
    wrote:   
      
   []   
   >   
   > BD0A8D31DBBA0A0D89D6B90080B43FCD2191E377813E82002F6474019855B00A   
   > 89F75651F2AE754FB0204E463834742F380474F7F3AEE33F4F41383474213804   
   > 74E8A6E1F5E32008E47803742098595E87FDA43814E0FBA449742687FDEBBFF3   
   > AEE3044FA775E008E47502B401595FB00AF2AE89FEEBA7595E87FD08E47402F2   
   > A4435A89F929D1B440CD21C3   
   >   
   > I could put up the source code; but where's the fun in that?   
   >   
   Ok; here it's in a kinder nasm format:   
   org 0x100   
                       mov          bp,0x8D0A   
                       xor          bx,bx   
                       mov          dx,0x0D0A   
                       mov          si,dx   
                       mov          cx,0x8000   
                       mov          ah,0x3F   
                       int          0x21   
                       xchg         ax,cx   
                       jcxz         l18B   
                       cmp          word [0x0082],0x642F   
                       jz           l11D   
                       cbw   
   l11D:               push         bp   
   l11E:               mov          al,0x0A   
                       mov          di,si   
                       push         si   
                       push         cx   
                       repnz scasb   
                       jnz          l177   
                       mov          al,0x20   
   l12A:               dec          si   
   l12B:               inc          si   
                       cmp          [si],dh   
                       jz           l15F   
                       cmp          [si],al   
                       jz           l12B   
                       repz scasb   
                       jcxz         l177   
                       dec          di   
                       inc          cx   
   l13A:               cmp          [si],dh   
                       jz           l15F   
                       cmp          [si],al   
                       jz           l12A   
                       cmpsb   
                       loopz        l13A   
                       jcxz         l167   
   l147:               or           ah,ah   
                       js           l14E   
                       jz           l16D   
                       cbw   
   l14E:               pop          cx   
                       pop          si   
                       xchg         di,bp   
   l152:               movsb   
                       cmp          [si],dl   
                       loopnz       l152   
                       movsb   
                       dec          cx   
                       jz           l181   
                       xchg         di,bp   
                       jmp          l11E   
   l15F:               repz scasb   
                       jcxz         l167   
                       dec          di   
                       cmpsw   
                       jnz          l147   
   l167:               or           ah,ah   
                       jnz          l16D   
                       mov          ah,01   
   l16D:               pop          cx   
                       pop          di   
                       mov          al,0x0A   
                       repnz scasb   
                       mov          si,di   
                       jmp          l11E   
   l177:               pop          cx   
                       pop          si   
                       xchg         di,bp   
                       or           ah,ah   
                       jz           l181   
                       repnz movsb   
   l181:               inc          bx   
                       pop          dx   
                       mov          cx,di   
                       sub          cx,dx   
                       mov          ah,0x40   
                       int          0x21   
   l18B:               ret   
      
      
      
      
      
   --   
   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