Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #4152

Re: show current Month's calendar in 256 bytes

From "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1>
Newsgroups comp.lang.asm.x86, alt.lang.asm, comp.os.msdos.programmer
Subject Re: show current Month's calendar in 256 bytes
Date 2022-05-14 09:25 +0100
Organization Dis
Message-ID <20220514092520.d3fdfddb2c22993c8f50c627@127.0.0.1> (permalink)
References <20220511111156.07e4db96e5e30b7a7dbdbb17@127.0.0.1> <20220513144501.f06be58ff08b52e8bf43fad4@127.0.0.1>

Cross-posted to 3 groups.

Show all headers | View raw


On Fri, 13 May 2022 14:45:01 +0100
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

> On Wed, 11 May 2022 11:11:56 +0100
> "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:
> 
> > DOS prog to display current month - parm of capital 'M' starts week at Monday, defaults to Sunday.
> > uses int 21 fn 2A for getting current date and fn 09 for display. 254 bytes.
> > 

[]
> > 
> N.B. Warranty expires 31st Jan 2100.
> 
->           d 100 l100
16AB:0100 BE 82 00 80-3C 4D 75 01-43 BF 24 09-57 B4 2A CD  ....<Mu.C.$.W.*.
16AB:0110 21 51 28 C2-28 DA 80 C2-06 BD 30 30-BE DA 01 A5  !Q(.(.....00....
16AB:0120 B9 06 00 B0-20 F3 AA 88-F1 49 01 CE-01 CE 01 CE  .... ....I......
16AB:0130 A5 A4 AA 58-B1 64 52 99-F7 F1 52 08-D2 75 02 88  ...X.dR...R..u..
16AB:0140 C2 D4 0A 86-E0 09 E8 AB-58 D4 0A 86-E0 09 E8 AB  ........X.......
16AB:0150 BE CA 01 A5-01 DE 01 DE-B0 20 B1 07-38 D9 75 03  ......... ..8.u.
16AB:0160 BE CC 01 A5-AA E2 F5 BE-CA 01 A5 5B-88 F8 B7 1C  ...........[....
16AB:0170 2C 02 74 0F-79 02 04 0C-91 B8 B5 06-D3 E8 80 D7  ,.t.y...........
16AB:0180 02 EB 07 80-E2 03 75 02-FE C7 92 BE-0A 0D B9 07  ......u.........
16AB:0190 00 D4 07 98-74 0D 28 C1-51 91 B0 20-AA AA AA E2  ....t.(.Q.. ....
16AB:01A0 FB 58 91 40-38 C7 72 16-50 D4 0A 86-E0 3C 00 75  .X.@8.r.P....<.u
16AB:01B0 02 B0 10 31-E8 AB B0 20-AA 58 E2 E7-B1 07 96 AB  ...1... .X......
16AB:01C0 96 73 E0 5A-89 D0 AA CD-21 C3 0D 0A-53 75 4D 6F  .s.Z....!...SuMo
16AB:01D0 54 75 57 65-54 68 46 72-53 61 0D 0A-4A 61 6E 46  TuWeThFrSa..JanF
16AB:01E0 65 62 4D 61-72 41 70 72-4D 61 79 4A-75 6E 4A 75  ebMarAprMayJunJu
16AB:01F0 6C 41 75 67-53 65 70 4F-63 74 4E 6F-76 44 65 63  lAugSepOctNovDec

New! Improved! 256 bytes. Warranty expires Dec 31st 9999. (code is OK to y32k, but it won't display 5 digit year)

Thanks for taking a peek Wolfgang, don't get hung up on the DOS interrupt, focus on the leap year test and month length array... 

-- 
Bah, and indeed Humbug.

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

show current Month's calendar in 256 bytes "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> - 2022-05-11 11:11 +0100
  Re: show current Month's calendar in 256 bytes "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> - 2022-05-13 14:45 +0100
    Re: show current Month's calendar in 256 bytes "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> - 2022-05-14 09:25 +0100
      Re: show current Month's calendar in 256 bytes Frank Kotler <fbkotler@nospicedham.myfairpoint.net> - 2022-05-14 20:10 -0400
      Re: show current Month's calendar in 256 bytes Frank Kotler <fbkotler@nospicedham.myfairpoint.net> - 2022-05-14 20:19 -0400
      Re: show current Month's calendar in 256 bytes "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> - 2022-05-16 17:15 +0100
        Re: show current Month's calendar in 256 bytes "Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> - 2022-05-17 08:03 +0100

csiph-web