Post Reply 
HP-80 Nonpareil Emulator: fixed a bug in the calendar functions
06-26-2014, 07:52 AM
Post: #7
RE: HP-80 Nonpareil Emulator: fixed a bug in the calendar functions
(06-25-2014 09:41 PM)Thomas Klemm Wrote:  ... To be sure I had a look at the original US-patent 3863060 and noticed a special case at exactly that line:
[Image: hp-80-bug.png]
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
< 1712   L06201:  111.1.11..                            if p # 14
---
> 1712   L06201:  11111.11..                            if p # 15
/usr/local/lib/nonpareil diff 80.obj.orig 80.obj
Code:
1666c1666
< 3201:1654
---
> 3201:1754

And, lo and behold, the bug in the calendar functions was fixed.

Cheers
Thomas

Very nice archeo-software debugging!

What is surprising is the coincidence of the missing L letter, and the mismatch between the bit pattern and assembler symbolic instruction in the original patent.

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-80 Nonpareil Emulator: fixed a bug in the calendar functions - J-F Garnier - 06-26-2014 07:52 AM



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