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,100 of 4,675   
   Rick C. Hodgin to John   
   Re: small asm code (compo?)   
   23 Aug 20 17:19:14   
   
   From: rick.c.hodgin@nospicedham.gmail.com   
      
   On 8/23/20 3:48 PM, Kerr-Mudd,John wrote:   
   > Anyone want to try the long version? ('Monday' 'Tuesday' etc?)   
      
   21 bytes code plus 47 bytes data = 68 bytes.   
      
   .MODEL small   
   .8086   
      
   .data   
        long_days BYTE 0,"Sun$"   
                  BYTE 1,"Mon$"   
                  BYTE 2,"Tues$"   
                  BYTE 3,"Wednes$"   
                  BYTE 4,"Thurs$"   
                  BYTE 5,"Fri$"   
                  BYTE 6,"Satur$"   
        day BYTE "day$"   
      
   .code   
        test2_ PROC PUBLIC   
            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   
        test2_ ENDP   
      
   END   
      
   --   
   Rick C. Hodgin   
      
   --- 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