Post Reply 
Year(s) Month(s) Day(s) between 2 dates
10-22-2015, 06:02 PM (This post was last modified: 10-22-2015 06:03 PM by Dieter.)
Post: #18
RE: Year(s) Month(s) Day(s) between 2 dates
(10-22-2015 04:00 PM)Didier Lachieze Wrote:  The program from Dieter is extremely well done. However it’s still possible to squeeze out a few steps Smile
Here is a slightly modified version using local registers instead of global ones and without the need for flag 00:

Ah, great. I like the idea with the complex STO–.03 which calculates y2–y1 and m2–m1 in one single step.

The program now is eight lines shorter. AFAIK this is equivalent to the memory consumption of two data registers, but on the other hand the program requires three additional (local) registers... ;-) As far as I can see R.00 seems to remain unused, so LocR 004 (with adjusted register addresses) should be fine as well. Or do I miss something here?

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Year(s) Month(s) Day(s) between 2 dates - Dieter - 10-22-2015 06:02 PM



User(s) browsing this thread: 13 Guest(s)