Post Reply 
Year(s) Month(s) Day(s) between 2 dates
10-28-2015, 12:24 AM (This post was last modified: 10-28-2015 12:25 AM by fhub.)
Post: #28
RE: Year(s) Month(s) Day(s) between 2 dates
(10-27-2015 11:25 PM)Dieter Wrote:  So the error must be on your side. You probably entered the program incorrectly.
Well, I've already checked it 3 times before, and now I've even created a disassembler listing from my entered program and checked it again - I can't find any differences!
Look by yourself - here's the listing which you can compare with your posted listing:
Code:

001 LBL'YMD'
002 STO 02
003 DAY
004 x[<->] Y
005 STO 01
006 DAY
007 -
008 CF 00
009 x=0?
010 GTO 01
011 SF 00
012 RCL 02
013 DATE[->]
014 DROP
015 DSZ X
016 SKIP 003
017 DROP
018 # 012
019 DEC Y
020 RCL 01
021 DAY
022 [->]DATE
023 RCL 02
024 [DELTA]DAYS
025 LBL 01
026 SDR 004
027 RCL 02
028 MONTH
029 FS?C 00
030 DEC X
031 RCL 01
032 MONTH
033 -
034 x=0?
035 SKIP 003
036 SF 00
037 # 012
038 +
039 SDR 002
040 +
041 RCL 02
042 YEAR
043 FS?C 00
044 DEC X
045 RCL 01
046 YEAR
047 -
048 +
049 END
I've no idea what could be the reason for our different results - I'm running this program on the standard WP34s emulator with default settings.

Franz
Visit this user's website 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 - fhub - 10-28-2015 12:24 AM



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