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 4,097 of 4,675   
   Kerr-Mudd,John to aen@nospicedham.spamtrap.com   
   Re: small asm code (compo?)   
   23 Aug 20 19:48:06   
   
   From: notsaying@nospicedham.127.0.0.1   
      
   On Sun, 23 Aug 2020 18:41:33 GMT, aen@nospicedham.spamtrap.com wrote:   
      
   > On Sun, 23 Aug 2020 13:11:07 -0400, "Rick C. Hodgin"   
   >  wrote:   
   >>...   
   >>         mov     ah,2ah   
   >>         int     21h   
   >           shl     al,1   
   >>         cbw   
   >>         mov     bx,ax   
   >>         add     bx,offset days   
   >>         mov     byte ptr [bx+2],'$'   
   >>         mov     dx,bx   
   >>         mov     ah,9   
   >>         int     21h   
   >>         ret   
      
   Yup, that's about it; I forgot to put in the original spec that I want   
   the return code set to 1 for Sun etc, Otherwise the 'mov bx,ax' could   
   have been an 'xchg'.   
      
   Anyone want to try the long version? ('Monday' 'Tuesday' etc?)   
      
   --   
   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