minimal Easter 'calculator' for DOS

Liste des GroupesRevenir à com programmer 
Sujet : minimal Easter 'calculator' for DOS
De : admin (at) *nospam* 127.0.0.1 (Kerr-Mudd, John)
Groupes : alt.lang.asm comp.os.msdos.programmer
Date : 23. Mar 2025, 08:16:05
Autres entêtes
Organisation : Dis
Message-ID : <20250323071605.83c8b2b6b1ceb9f0e1e5a89f@127.0.0.1>
User-Agent : Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Easter in 120 bytes

minEast.com:

debug format:
->          d 100 l78
1639:0100 B9 04 00 BE-82 00 BF 65-01 31 ED B3-0A AC 2C 30  .......e.1....,0
1639:0110 98 72 07 95-F7 E3 01 C5-E2 F3 89 E8-B1 13 99 F7  .r..............
1639:0120 F1 88 D3 8A-19 8D 86 94-F8 89 C2 D1-E8 D1 E8 01  ................
1639:0130 D0 83 C0 03-01 D8 99 B1-07 F7 F1 89-C8 28 D0 75  .............(.u
1639:0140 01 91 00 D8-B2 33 3C 1F-76 03 2C 1F-42 57 D4 0A  .....3<.v.,.BW..
1639:0150 35 30 30 86-E0 AB B0 20-AA 92 AA B8-20 24 AB 5A  500.... .... $.Z
1639:0160 B4 09 CD 21-C3 2D 22 17-2A 1F 31 27-1C 2F 24 19  ...!.-".*.1'./$.
1639:0170-2C 21 16 29-1E 30 26 1B                          ,!.).0&.
->          q

Hexdump format:
B90400BE8200BF650131EDB30AAC2C3098720795F7E301C5E2F389E8B11399F7
F188D38A198D8694F889C2D1E8D1E801D083C00301D899B107F7F189C828D075
019100D8B2333C1F76032C1F4257D40A35303086E0ABB020AA92AAB82024AB5A
B409CD21C32D22172A1F31271C2F24192C2116291E30261B

valid only for 1900-2099 (tested)

Uses a fixed GN table taken from
https://boyet.com/blog/calculating-the-date-of-easter-for-a-particular-year/


Due to cutbacks there's no easter egg inside, sorry.

The program deliberately doesn't add a crlf (just a space), so one can
append the year by running in batch i.e.


@echo off
@rem showeast.bat
if @%1 == @ goto Usage
rem put 'day mth'
minEast %1
rem add 'year'
echo %1
goto :Exit
:Usage
echo Usage is: %0 yyyy
echo where yyyy is in range 1900-2099
echo Output is Day Month Year
:Exit


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.

Date Sujet#  Auteur
23 Mar 25 * minimal Easter 'calculator' for DOS5Kerr-Mudd, John
24 Apr 25 `* Re: minimal Easter 'calculator' for DOS4Kerr-Mudd, John
5 May 25  `* UK calendar program; was Re: minimal Easter 'calculator' for DOS3Kerr-Mudd, John
5 May 25   `* Re: UK calendar program; was Re: minimal Easter 'calculator' for DOS2Kerr-Mudd, John
5 May 25    `- Re: UK calendar program; was Re: minimal Easter 'calculator' for DOS1Kerr-Mudd, John

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal