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,172 of 4,675   
   Terje Mathisen to John   
   Re: Calendar program   
   08 Oct 20 17:10:49   
   
   From: terje.mathisen@nospicedham.tmsw.no   
      
   Kerr-Mudd,John wrote:   
   > I found an old cal.com (900 bytes)   
   >> cal /? gives   
   >   
   > CAL  1.07  Freeware   
   > Copyright 1998, Charles Dye   
   >   
   > CAL   
   > CAL mm/yyyy   
   > CAL yyyy   
   >   
   > ; I have another 856 byte one   
   >   
   > which I may have written, or recreated from someone else's com:   
   >> cal /? gives   
   > Unknown month or year. Example usage: "cal march 83"   
   >   
   > which shows how long ago it was written!   
   >   
   > I have rewritten it to the same spec:   
   > cal               (uses current mth&year)   
   > cal mthname       (uses current year and mthname)   
   > cal mthname year  (uses year and mthname)   
   >   
   > current byte count is down to 465   
   >   
   >   
   > Sample output:   
   >> cal fEb   
   >   
   >          February 2020   
   >   
   > Sun Mon Tue Wed Thu Fri Sat   
   >   
   >                           1   
   >   2   3   4   5   6   7   8   
   >   9  10  11  12  13  14  15   
   > 16  17  18  19  20  21  22   
   > 23  24  25  26  27  28  29   
   >   
   >   
   > DOS dependencies:   
   > Int 21 fn 2A for curr yr/mth (if full yr/mth not specced)   
   > Int 21 fn 09 to print.   
   >   
   You do realize that weeks are supposed to start on Monday, right? :-)   
      
   My favorite start-of-week bug happens about every 7 years, when week   
   numbers differ by one depending upon which country you are in. :-(   
      
   Terje   
      
   --   
   -    
   "almost all programming can be viewed as an exercise in caching"   
      
   --- 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