The Museum of HP Calculators

HP Forum Archive 15

[ Return to Index | Top of Index ]

More success with Nonpareil
Message #1 Posted by Eric Smith on 7 May 2005, 11:35 p.m.

This morning I was trying to figure out why Nonpareil isn’t coming anywhere close to simulating the HP-67 correctly. It comes up with a single decimal point lit in the display, and the only visible responses to the keyboard are for the decimal point to move to another position or disappear.

So I captured an execution trace from the simulator, and started studying it. Almost immediately, I found that they are doing a “DELAYED ROM SELECT” instruction preceding a “A -> ROM” instruction.

On the real hardware, I don’t know whether DELAYED ROM SELECT is only delayed by one instruction, or whether it is delayed until the next branch. When I wrote the Woodstock CPU code, I implemented it as being delayed until the next branch. But I forgot to handle it with the “GOTO KEYS” and “A -> ROM” instructions, which are computed branches based on the keycode and A register, respectively.

I also determined that opcode 0120 octal is almost certainly the “KEYS -> A” instruction.

Adding KEYS->A and fixing the DELAYED ROM SELECT did not fix the HP-67 problem. But it did fix the problems with the HP-34C, HP-37E, HP-38E, and HP-38C, all of which now seem to work correctly!

Edited: 8 May 2005, 4:49 p.m.

      
Re: More success with Nonpareil
Message #2 Posted by Mike (Stgt) on 9 May 2005, 6:01 a.m.,
in response to message #1 by Eric Smith

Thank you very much for the info. I'll try it ASAP.

Lately I was not able to MAKE, found that pkgconfig-0.17.2-1 seemed to fail, had to go back to pkgconfig-0.15.??? Just saw that pkgconfig now is at 0.17.2-2.

Ciao.....Mike

            
Re: More success with Nonpareil
Message #3 Posted by Eric Smith on 10 May 2005, 3:25 a.m.,
in response to message #2 by Mike (Stgt)

I am currently using pkgconfig-0.15.0. I have not tried any newer version; Fedora Core 4 Test 2 is still using 0.15.0.

I no longer use make; I use SCons instead. All future releases will be built with SCons. It requires Python, but does not have any other unusual prerequisites. A copy of SCons will be provided in the Nonpareil source code release tarball, and it does not need to be installed to be used. Instructions will be in the INSTALL file. SCons and Python will only be needed to build Nonpareil; they are not needed to run the resulting executable.

I'm not sure when the next release will be. The latest source code is available from my Subversion repository.

                  
confused with Nonpareil
Message #4 Posted by Mike (Stgt) on 10 May 2005, 7:36 a.m.,
in response to message #3 by Eric Smith

Hi Eric!

I just installed Python and SCons under Cygwin to compile your nonpareil-0.46 and found no input file for SCons. Do I still have to use make for 0.46? Only updates in SVN use SCons?

Ciao.....Mike

BTW - pkgconfig-0.17.2-2 seems to be OK, at least no errors during make, only warnings.

                        
Re: confused with Nonpareil
Message #5 Posted by Eric Smith on 10 May 2005, 2:34 p.m.,
in response to message #4 by Mike (Stgt)

Yes, 0.46 is the last update to use Make. It doesn't have any of my recent work, which is currently only in the Subversion repository. I'll try to get a new release put together soon (maybe this weekend).

                              
Re: confused with Nonpareil
Message #6 Posted by Eric Smith on 12 May 2005, 4:43 a.m.,
in response to message #5 by Eric Smith

I just released version 0.61 of Nonpareil, which uses SCons to build.

Edited: 12 May 2005, 4:44 p.m. after one or more responses were posted

                                    
(TN) Your update speed makes me breathless
Message #7 Posted by Mike (Stgt) on 12 May 2005, 5:56 a.m.,
in response to message #6 by Eric Smith

.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall