HP-80 Nonpareil Emulator: fixed a bug in the calendar functions
|
06-25-2014, 09:41 PM
(This post was last modified: 06-25-2014 10:53 PM by Thomas Klemm.)
Post: #1
|
|||
|
|||
HP-80 Nonpareil Emulator: fixed a bug in the calendar functions
Inspired by a recent thread I started using the HP-80 emulator but had troubles with the calendar functions. Whatever I entered the result was always a blinking 9.999999999 99.
So I started to debug the DATE function and noticed a fishy line 6201 in the following block of code: Code: 1708 L06175: .1....11.. 4 -> p The loop was executed once too often and thus the month (here 6) was shifted over the right end of register c and thus got lost: Code: 1712 L06201: 111.1.11.. if p # 14 To be sure I had a look at the original US-patent 3863060 and noticed a special case at exactly that line: The leading L is missing in line number 6201. And while the texts agree (if p # 14 | IF P # 14) the bit pattern don't: 111.1.11.. | 11111.11... And of course [if p # 15] makes more sense. Thus I patched these two files in my installation: /usr/local/lib/nonpareil diff 80.lst.orig 80.lst Code: 2074c2074 Code: 1666c1666 And, lo and behold, the bug in the calendar functions was fixed. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)