The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP-34C Emulator
Message #1 Posted by BShoring on 27 Mar 2013, 5:35 p.m.

Last year I got an emulator for the HP-34C for iPhone and overall I love it. The solve, integrate, gamma and other functions all work flawlessly.

The one problem I find is that if I have more than 2 labels the app gets confused. The original HP-34C is supposed to have 12 addressable labels: 0-9 and A & B. If I write a program with only two labels it usually functions correctly. However if I add more labels, the GTO and GSB functions cannot locate them. Sometimes the app just freezes and other times a GTO will just land in the middle of a subroutine. I've talked with the developer about this and he's very nice, and explained that he used microcode dumped from the physical machine, but that he has not given up looking for a solution.

I am wondering if 34C emulators for other platforms have this issue with the labels? Or did the original machine have this bug?

Love the app. Just wish there was a way to get a fix for this.

Bob

      
Re: HP-34C Emulator
Message #2 Posted by Thomas Klemm on 27 Mar 2013, 8:10 p.m.,
in response to message #1 by BShoring

Quote:
I am wondering if 34C emulators for other platforms have this issue with the labels?

With Nonpareil I can't reproduce that behavior. But maybe you can be more specific and post a small program that causes the trouble.

Kind regards
Thomas

            
Re: HP-34C Emulator
Message #3 Posted by BShoring on 27 Mar 2013, 11:37 p.m.,
in response to message #2 by Thomas Klemm

Hi Thomas,

Here's an example, taken from the HP-34C manual, page 112, which I post below. After keying in the program and rechecking the opcodes, I tried the examples at the bottom of the page and the calculator just launched into an endless loop.

Here it is:

LBL A, EEX, 4, X<>Y, X>Y, GTO B, 1 7 . 5, GTO 1, LBL B, 2 0, LBL 1, %, RTN

Examples given in the book are: 15000 A should give a result of 3,000.00.

7500 A should give a result of 1,312.50.

Thanks for taking a look at this! Regards, Bob

Edited: 27 Mar 2013, 11:40 p.m.

                  
Re: HP-34C Emulator
Message #4 Posted by Thomas Klemm on 28 Mar 2013, 1:41 a.m.,
in response to message #3 by BShoring

I can confirm the problem with this example. It appears to me that the GTO command has a bug: Sometimes it will just return to the first line but the next time it will just be ignored.

So if you run [GSB] [B] it will either end up in an endless loop or with 3.5 which is 20% of 17.5.

The following program works fine:

GTO B
17.5
GTO 1
LBL B
20
LBL 1
%
RTN

But when I add the command [x>y] beforehand and enter y = 10,000 and x = 7,500 so that the condition is not met the [GTO B] will be ignored but the [GTO 1] later as well!

I can hardly believe that this is a bug in the ROM of the HP-34C. Tons of people will have punched this program into their calculators. Maybe Eric Smith can have a look at that?

Cheers
Thomas

                        
Re: HP-34C Emulator
Message #5 Posted by Olivier De Smet on 28 Mar 2013, 3:24 a.m.,
in response to message #4 by Thomas Klemm

Hi,

With go34c (android microcode emulator not based on non-pareil) the given program works nicely.

Either the rom of the emulator is corrupted or the cpu emulator still have some bugs in it.

Olivier

                              
Re: HP-34C Emulator Problems with Label Search
Message #6 Posted by BShoring on 28 Mar 2013, 1:05 p.m.,
in response to message #5 by Olivier De Smet

Any plans to come out with an iOS version of go34c?

I'm currently using the iPhone/iPad app RPN-34C, which is otherwise great, except for the label search problem.

                        
Re: HP-34C Emulator Problems with Label Search
Message #7 Posted by BShoring on 28 Mar 2013, 1:20 p.m.,
in response to message #4 by Thomas Klemm

So this problem is not limited to just one platform? Could be that the developer of my app and yours got their code from the same source. Hope we can get a fix so we can realize the full power of this great calculator.

                  
Re: HP-34C Emulator
Message #8 Posted by MikeT on 30 Mar 2013, 4:26 p.m.,
in response to message #3 by BShoring

Program seems to work as expected on a real HP34C - I ran it a dozen or so times and got the same result each time..

                        
Re: HP-34C Emulator
Message #9 Posted by BShoring on 30 Mar 2013, 5:04 p.m.,
in response to message #8 by MikeT

Thanks so much Mike for trying it out on a physical HP-34C. So it appears that the label search problem is on some of the emulators, at least on Nonpareil and the iOS platforms. It is very frustrating as this is a very powerful calculator, but I can't have more than 2 labels in a program or the emulator gets confused.

Hope we can find a fix!

Thanks, Bob in San Francisco


[ Return to Index | Top of Index ]

Go back to the main exhibit hall