home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,432 of 42,547   
   Kerr-Mudd, John to John"   
   Re: minimal Easter 'calculator' for DOS   
   04 Apr 25 09:46:43   
   
   XPost: alt.lang.asm, comp.os.msdos.programmer   
   From: admin@127.0.0.1   
      
   Updated to correct batch file:   
      
   On Thu, 3 Apr 2025 21:07:08 +0100   
   "Kerr-Mudd, John"  wrote:   
      
   > On Sun, 23 Mar 2025 07:16:05 +0000   
   > "Kerr-Mudd, John"  wrote:   
   >   
   > Bigger range Easter program [111] bytes   
   >   
   > minEast2.com:   
   > >   
   > > debug format:   
   > ->          d 100 l6f   
   > 1639:0100 99 89 C5 BF-0A 00 BE 82-00 98 01 E8-88 FB 88 CF  ................   
   > 1639:0110 89 C1 F7 E7-95 AC 2C 30-73 EF 91 B2-13 F6 F2 92  ......,0s.......   
   > 1639:0120 F6 E6 96 88-D8 89 C3 89-C2 B1 02 D3-EA 29 D3 53  .............).S   
   > 1639:0130 41 D3 ED F6-F1 28 C3 8D-40 0F B9 1E-00 F6 F1 3D  A....(..@......=   
   > 1639:0140 06 1C 10 E1-58 29 E8 83-C0 07 39 C8-7C F9 BB 20  ....X)....9.|..   
   > 1639:0150 34 2C 28 77-04 FE CF 04-1F B2 F9 89-D7 D4 0A 35  4,(w...........5   
   > 1639:0160 30 30 86-E0 AB 93 AB-B0 24 AB B4-09 CD 21 C3     00......$....!.   
   > ->          q   
   >   
   > >   
   > > Hexdump format:   
   > 99 89 C5 BF 0A 00 BE 82 00 98 01 E8 88 FB 88 CF   
   > 89 C1 F7 E7 95 AC 2C 30 73 EF 91 B2 13 F6 F2 92   
   > F6 E6 96 88 D8 89 C3 89 C2 B1 02 D3 EA 29 D3 53   
   > 41 D3 ED F6 F1 28 C3 8D 40 0F B9 1E 00 F6 F1 3D   
   > 06 1C 10 E1 58 29 E8 83 C0 07 39 C8 7C F9 BB 20   
   > 34 2C 28 77 04 FE CF 04 1F B2 F9 89 D7 D4 0A 35   
   > 30 30 86 E0 AB 93 AB B0 24 AB B4 09 CD 21 C3   
   >   
   >   
   > valid for 1753-4000 (tested 1753 - 2099)   
   >   
   > Uses Oudin's Algorithm, with code taken from Hugo Size Coding Compo #20   
   > runner up Sergo Polsky   
   >   
   > >   
   > > The program deliberately doesn't add a crlf (just a space), so one can   
   > > append the year by running in batch i.e.   
   > >   
   > >   
   > showeast.bat   
   >   
   > @echo off   
   > @rem showeast.bat   
   > if @%1 == @ goto Usage   
   > rem put 'day mth'   
   > minEast %1   
   minEast2 %1   
   > rem add 'year'   
   > echo %1   
   > goto :EOF   
   > :Usage   
   > echo Usage is: %0 yyyy   
   > echo where yyyy is in range 1900-2099   
   echo where yyyy is in range 1753-4000   
   > echo Output is Day Month Year   
   >   
   > >   
   > >   
   > > Example:   
   > >   
   > > B:\>showeast 2025   
   > > 20 4 2025   
   > >   
   > > B:\>   
   > >   
   > > For those of you with the strange date format 'm d yyyy'   
   > > that'd be April 20th this year.   
   > >   
   >   
   >   
      
      
   --   
   Bah, and indeed Humbug.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca