• Re: minimal Easter 'calculator' for DOS

    From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm,comp.os.msdos.programmer,alt.msdos.batch on Fri Apr 4 19:35:59 2025
    From Newsgroup: alt.msdos.batch

    On Fri, 4 Apr 2025 09:46:43 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    Cheaper again!

    On Sun, 23 Mar 2025 07:16:05 +0000
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    Bigger range Easter program [111] bytes

    minEast2.com:

    feh: I put up code I've been poring over for days, then next day
    find a shorter way:

    (my ref: minease7, anyone following this should name it mineast2 if
    using the batch below)

    [106 bytes]

    d 100 l6A
    1639:0100 99 BF 0A 00-BE 82 00 01-D0 89 EB 89-CD 89 C1 F7 ................ 1639:0110 E7 92 AC 2C-30 73 F0 91-B1 13 F6 F1-91 F6 E5 96 ...,0s.......... 1639:0120 B9 02 00 89-D8 89 C5 D3-ED 29 EB 53-41 D3 EA F6 .........).SA... 1639:0130 F1 28 C3 8D-40 0F B1 1E-F6 F1 3D 06-1C 10 E1 58 .(..@.....=....X 1639:0140 29 D0 83 C0-07 39 C8 7C-F9 BB 20 34-2C 28 77 04 )....9.|.. 4,(w. 1639:0150 FE CF 04 1F-B2 F9 89 D7-D4 0A 35 30-30 86 E0 AB ..........500... 1639:0160 93 AB-B4 24 AB B4-09 CD 21 C3 ...$....!.
    q

    99BF 0A00 BE82 0001 D089 EB89 CD89 C1F7 E792 AC2C 3073 F091 B113 F6F1 91F6
    E596 B902 0089 D889 C5D3 ED29 EB53 41D3 EAF6 F128 C38D 400F B11E F6F1 3D06
    1C10 E158 29D0 83C0 0739 C87C F9BB 2034 2C28 7704 FECF 041F B2F9 89D7 D40A
    3530 3086 E0AB 93AB B424 ABB4 09CD 21C3


    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'
    minEast2 %1
    rem add 'year'
    echo %1
    goto :EOF
    :Usage
    echo Usage is: %0 yyyy
    echo where yyyy is in range 1753-4000
    echo Output is Day Month Year



    Example:

    showeast 2025
    20 4 2025



    For those of you with the strange date format 'm d yyyy'
    that'd be April 20th this year.


    --
    Bah, and indeed Humbug.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm,comp.os.msdos.programmer,alt.msdos.batch on Thu Jul 10 22:11:38 2025
    From Newsgroup: alt.msdos.batch

    On Fri, 4 Apr 2025 19:35:59 +0100, "Kerr-Mudd, John" <admin@127.0.0.1>
    wrote:

    feh: I put up code I've been poring over for days, then next day
    find a shorter way:

    (my ref: minease7, anyone following this should name it mineast2 if
    using the batch below)

    Apologies. I'm an asshole. I just wanted to spam the ng.
    I love spamming. Here is more batch code to spam the newsgroup by.
    It's what I do as a troll.

    @echo off
    :: CleverShowEast.bat - a twist on your original
    :: Usage: CleverShowEast yyyy

    :: Check argument by jumping to label with dynamic name
    CALL :CHECKARG %1
    GOTO :EOF

    :CHECKARG
    :: If %1 is empty, jump to usage
    IF "%~1"=="" GOTO USAGE
    :: Get day and month via external tool
    FOR /F "tokens=*" %%i IN ('minEast %~1') DO SET DM=%%i
    :: Compose full date output
    ECHO %DM% %~1
    GOTO :EOF

    :USAGE
    ECHO Usage: %~nx0 yyyy
    ECHO where yyyy is in range 1900-2099
    ECHO Output is Day Month Year
    GOTO :EOF
    --
    Bah, and indeed Humbug.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm,comp.os.msdos.programmer,alt.msdos.batch on Fri Jul 11 10:38:20 2025
    From Newsgroup: alt.msdos.batch

    On Thu, 10 Jul 2025 22:11:38 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    No, I didn't: I don't have an account at paganini. All my genuine posts
    come from E-S.

    Path: news.eternal-september.org!eternal-september.org! feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team! not-for-mail From: "Kerr-Mudd, John" <admin@127.0.0.1> Newsgroups: alt.lang.asm,comp.os.msdos.programmer,alt.msdos.batch Subject: Re: minimal Easter 'calculator' for DOS Date: Thu, 10 Jul 2025 22:11:38 +0100
    Organization: To protect and to server
    Message-ID: <104paaa$29865$1@paganini.bofh.team>
    References: <20250323071605.83c8b2b6b1ceb9f0e1e5a89f@127.0.0.1> <20250403210708.e5a73771187a78115466c12e@127.0.0.1> <20250404094643.398f2f1006fc73afe0dbd783@127.0.0.1> <20250404193559.ff0c9854391d776a78103c85@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Thu, 10 Jul 2025 21:11:39 -0000 (UTC) Injection-Info: paganini.bofh.team; logging-data="2400453"; posting-host="AbEjU5tLmy6wcFpXuJkJ9A.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA +yjdR4A"; SigSep: is ALWAYS dash dash space newline X-Notice: Filtered by postfilter v. 0.9.3 ;X-no-Archive: Maybe X-Clacks-Overhead: 4GH GNU Terry Pratchett X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
    Xref: news.eternal-september.org alt.lang.asm:8830 comp.os.msdos.programmer:5360 alt.msdos.batch:6185
    --- Synchronet 3.21a-Linux NewsLink 1.2