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,102 of 4,675   
   aen@nospicedham.spamtrap.com to rick.c.hodgin@nospicedham.gmail.com   
   Re: small asm code (compo?)   
   24 Aug 20 03:43:58   
   
   On Sun, 23 Aug 2020 17:19:14 -0400, "Rick C. Hodgin"   
    wrote:   
   >...   
   >         mov     ah,2ah   
   >         int     21h   
   >         mov     di,offset long_days   
   >         std   
   >         scasb   
   >         mov     dx,di   
   >         inc     dx   
   >         mov     ah,9   
   >         int     21h   
   >         mov     dx,offset day   
   >         int     21h   
   >         ret   
   Try:   
            mov     ah,2ah   
            int     21h   
            mov     di,long_days   
            cld   
            repne   scasb   
            mov     dx,di   
            mov     ah,9   
            int     21h   
            mov     dx,day   
            int     21h   
            ret   
   long_days db 0,"Sun$",1,"Mon$",2,"Tues$",3,"Wednes$"   
             db 4,"Thurs$",5,"Fri$",6,"Satur$"   
   day db "day$"   
   --   
   aen   
      
   --- 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