HP-15C: Fixing the CHS and Stack Lift Bug
|
12-14-2015, 11:39 PM
Post: #11
|
|||
|
|||
RE: HP-15C: Fixing the CHS and Stack Lift Bug
(12-14-2015 10:23 PM)rprosperi Wrote: Earlier research revealed the 10C and 12C do not have this problem. Likely because they actually wrote the code for the 10C and 12C, rather than porting the 34C code to the 11C/15C/16C, where it appears the bug originated. This is the relevant code of the HP-12C: Code: 01155: 1276 c=-c-1 s Compared to the other calculators the sign is negated unconditionally (line 01155) and only much later it's checked whether the mantissa is 0 (line 10413). If so the whole register c is set to 0 (line 10415). It could be interesting to compare this code to even earlier implementations of CHS. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 32 Guest(s)