From: notsaying@nospicedham.127.0.0.1   
      
   On Sun, 23 Aug 2020 22:51:17 GMT, aen@nospicedham.spamtrap.com wrote:   
      
   > On Sun, 23 Aug 2020 17:14:13 -0400, "Rick C. Hodgin"   
   > wrote:   
   >>...   
   >>I would've found that bug yesterday or tomorrow. :-)   
   >>   
   > Yeah, it isn't Sunday every day :-)   
   >   
   > I like the approach though, and it can easily be adapted to 3 letters:   
   >   
   > mov ah,2ah   
   > int 21h   
   > mul byte [multiplier]   
   > mov bx,ax   
   > add bx,days   
   > mov byte [bx+3],'$'   
   > mov dx,bx   
   > mov ah,9   
   > int 21h   
   > ret   
   > days db "SunMonTueWedThuFriSat"   
   > multiplier db 3   
      
   you can save 1 by inlining 'multiplier':   
      
   cpu 8086 ; show day str l52   
   org 0x100 ; mul inline num   
    mov ah,0x2A ; get system date   
    int 0x21 ; al daynum, 0=sun; cx:dx   
    push ax   
    mul byte [multiplier]   
    mov bx,ax   
    add bx,days   
    mov byte [bx+dylth],'$'   
      
   multiplier equ $-2   
      
    mov dx,bx   
    mov ah,9   
    int 21h   
    pop ax   
    inc ax   
    mov ah,0x4C   
    int 0x21   
      
   days db "SunMonTueWedThuFriSat"   
   dylth equ 3   
      
      
      
   --   
   Bah, and indeed, Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|