Post Reply 
Cuveesoft.ch emulators - getting programs to them on an iPhone
03-14-2017, 03:31 PM
Post: #1
Cuveesoft.ch emulators - getting programs to them on an iPhone
Ok, so call me slow (hey, not everyone at once!).

If nothing else, perhaps this question and thread can help others.

I have several of the SD emulators running on my iphone. Let's say the RPN-65 SD one.

I want to load a program into it.
I copy Don Shepherd's Prime factor program and email the text to myself.
I copy the text from my email so it is on the iPhone clipboard.

I start the emulator.
I tap twice on the LED display area to open up the CARDS page.
I can load a previously available program from the standard pac easily enough.
I press the + symbol in the top right corner.
I tap in the program area and choose paste.

What next ?

I see the text in that area but if I try to load the program nothing shows and it does not run.

What is the best way to get lots of programs like this from the museum library or from the old PPC Issues into these emulators ?

:-)
Find all posts by this user
Quote this message in a reply
03-15-2017, 12:57 AM (This post was last modified: 03-15-2017 01:28 AM by RobertM.)
Post: #2
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
My steps (maybe not the most direct, but seems to work for me)...

0) Copy the program text from an email (no line numbers)
1) Clear any current program
(swipe right on any existing card, then go into program mode and f CLEAR PRGM)
2) Tap and Hold in the display, select Paste
3) Double-tap display (bring up card manager)
4) hit "+" to create a new card (Program Plus)
5) Tap on the new card (should show the program in the program area) NOTE: any unrecognized lines will show as [???] in the program area. You may need to edit these and try again.
6) Tap on the title and edit name it, and tap on the classification to set it (if you want); you can also edit what shows for Labels A-E and a-e if you want; then hit Done
7) Hit Save, then Back
8) Hit Done

To get the card to show
(Not in program mode)
1) Double-tap the display (card manager)
2) tap on the card that you named earlier
3) Tap on Load

Not sure its the best way, but it should work.

I don't know of an easy way to do this for multiple programs. There might be a way to write a PC program that would "assemble" HP-65 mnemonics into a program card if I knew the rpn65 card format that Willy is using. Then you could drag and drop them in iTunes, or import cards directly from email.

Edit: looks like rpn65 card format is a relatively standard xml format (apple propery list dtd) that could probably be generated relatively easily, if you have a parser/assemble to convert from mnemonics to keycodes. Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
03-15-2017, 03:54 PM (This post was last modified: 03-15-2017 04:05 PM by RobertM.)
Post: #3
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
So when I try (for example) Don Shepard's Prime Factor program, pasting the program in shows three errors:

X<-->Y should be X<>Y
X=/=Y should be X#Y (this occurs twice in the program).

If you change those in your source text, then pasting it in and running it seems to work for me.

Edit: you can find a list of accepted mnemonics here.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-17-2017, 05:15 PM
Post: #4
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
Hi there, thrilled to see this discussion about my simulators. Maybe I can clear up a few things.

Gene:
You did just fine. After pasting, be sure to exit edit mode, so RPN-65 can translate the text. I admit, it's not obvious how to do so; there simply wasn't space for a "Done" button... One way to leave edit mode is to tap the white margin left or right.

RobertM:
It's okay to leave line numbers in as long as they have at least two digits. So:
02 clx
002 clx
02: clx
002: clx
will all work, while
2 clx
2: clx
will not.

You can paste programs in the display (in W/PRGM mode), as you described. On the iPhone versions, an even better way is to tap the display once to switch to a full edit screen where you can paste and edit your program. Tapping "Save" will copy the program to the calculator's program memory. You'll still need the card manager to store everything on a card.

And you're right: programs are stored as standard plain-text XML files. No fancy stuff, no binary code embedded. I've added a bit of documentation to my website today. See the "Advanced" section of RPN-67/97.

The next update will also accept X<-->Y, X<-->0, X<-->I, as well as X=/=Y and X=/=0. In addition, the question mark in X<Y? etc. will be optional.

Hope this helps. Please feel free to contact me via my website. I love getting comments and suggestions.

And please consider sending me programs you've converted from old documents so I can make them available for download.

Willy Kunz
CuVee Software

P.S. Can someone point me to Don Shepherd's Prime factor program? I've only found a dead link.
Find all posts by this user
Quote this message in a reply
03-17-2017, 05:28 PM
Post: #5
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-17-2017 05:15 PM)Willy R. Kunz Wrote:  P.S. Can someone point me to Don Shepherd's Prime factor program? I've only found a dead link.

I found it here. Not sure if that is what Gene was using.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-17-2017, 09:27 PM (This post was last modified: 03-17-2017 10:23 PM by Willy R. Kunz.)
Post: #6
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-17-2017 05:28 PM)RobertM Wrote:  
(03-17-2017 05:15 PM)Willy R. Kunz Wrote:  P.S. Can someone point me to Don Shepherd's Prime factor program? I've only found a dead link.

I found it here. Not sure if that is what Gene was using.

Thanks a lot. Imports without errors in pre-release RPN-65 Pro.

On my iPad Pro, confirmed primality of 999,999,937 in 44 seconds.
To my surprise, replacing steps 3 and 4 (RCL 1 +) with RCL+1 drastically reduced execution time to 25 secs.

To run the program in RPN-67/97, remove the NOP in step 14. Also change step 45 from x=y to x≠y GTO 0 and insert a LBL 0 after 0 RTN.
Running time of the above primality test is 14 seconds.
Find all posts by this user
Quote this message in a reply
03-18-2017, 09:12 PM (This post was last modified: 03-18-2017 09:13 PM by bshoring.)
Post: #7
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-17-2017 09:27 PM)Willy R. Kunz Wrote:  
(03-17-2017 05:28 PM)RobertM Wrote:  I found it here. Not sure if that is what Gene was using.

Thanks a lot. Imports without errors in pre-release RPN-65 Pro.

On my iPad Pro, confirmed primality of 999,999,937 in 44 seconds.
To my surprise, replacing steps 3 and 4 (RCL 1 +) with RCL+1 drastically reduced execution time to 25 secs.

To run the program in RPN-67/97, remove the NOP in step 14. Also change step 45 from x=y to x≠y GTO 0 and insert a LBL 0 after 0 RTN.
Running time of the above primality test is 14 seconds.

Willy, When I copied from email to the current version of both RPN-65 PRO and RPN-65 SD, I did have to make a few corrections for x≠y and X<>Y. And after making the corrections, somehow the next instruction got turned into a ???, but once I fixed those, it worked fine on both.


Regards,
Bob
Find all posts by this user
Quote this message in a reply
03-19-2017, 12:16 AM
Post: #8
RE: Cuveesoft.ch emulators - HP 67 Pinball Wizard
Willy,

Here is a link to a program card for Pinball Wizard

Pinball Wizard

The trouble I had with this listing were some X NE 0? and X NE Y? instructions. If you make any changes to the GREAT interpreter of the instructions, that would be my only wish-list item.

This is the original web page listing:

http://rskey.org/gene/hpgene/pinball.htm

NOTE: I found a typo on this listing from 20 years ago. Line 189 shows RCL B on my webpage and it should be RCL 6.

This is a great app. Please feel free to add this to the app library.
Find all posts by this user
Quote this message in a reply
03-19-2017, 12:52 PM
Post: #9
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
Update.

Either an error in the program listing or a problem in the emulator.

At the end of a ball shot, the program is to loop and add the bonus points to the total 1000 points at a time. When they are all added, it goes to the next ball.

Problem is it adds 1000 points in a loop and does not stop.

Here's Craig Pearce's BYTE article for Pinball Wizard. I think the program matches the listing there.

http://www.vintage-calculators.nl/HP%206..._03-06.pdf

Any ideas?
Find all posts by this user
Quote this message in a reply
03-19-2017, 05:38 PM
Post: #10
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-19-2017 12:16 AM)Gene Wrote:  Willy,

Here is a link to a program card for Pinball Wizard

Pinball Wizard

The trouble I had with this listing were some X NE 0? and X NE Y? instructions. If you make any changes to the GREAT interpreter of the instructions, that would be my only wish-list item.

This is the original web page listing:

http://rskey.org/gene/hpgene/pinball.htm

NOTE: I found a typo on this listing from 20 years ago. Line 189 shows RCL B on my webpage and it should be RCL 6.

This is a great app. Please feel free to add this to the app library.

Okay, I've added X NE 0? and X NE Y? to my simulators (the ? is optional.) Also X EQ 0?, X EQ Y?, X GT 0?, X GT Y?, X LT 0?, X LE Y? (sic!), X GT 0?, and X GT Y?.

The original web listing now imports without an error.
Find all posts by this user
Quote this message in a reply
03-19-2017, 05:56 PM
Post: #11
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-19-2017 12:52 PM)Gene Wrote:  Update.

Either an error in the program listing or a problem in the emulator.

At the end of a ball shot, the program is to loop and add the bonus points to the total 1000 points at a time. When they are all added, it goes to the next ball.

Problem is it adds 1000 points in a loop and does not stop.

Here's Craig Pearce's BYTE article for Pinball Wizard. I think the program matches the listing there.

http://www.vintage-calculators.nl/HP%206..._03-06.pdf

Any ideas?

There are two typos in the original listing as found in BYTE magazine:
Line 80: LBL f c 16 21 13. The command is correct, but the key codes should be 21 16 13.
Line 139: LBL 0 21 16. Again wrong key code, should be 16 00.

As you noted, line 189 on your website must be RCL 6.
In the program you sent me, line 153 is g x≠y (32 61). However, the listing on the website shows 153 X NE 0?, which translates to 31 61.
The wrong comparison causes the endless loop you described.

With all changes applied, RPN-67 and 97 run Pinball Wizard correctly, as verified against a real HP-67.

I'll add the program to the RPN-67 online library shortly.

Willy
Find all posts by this user
Quote this message in a reply
03-19-2017, 07:18 PM
Post: #12
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
Many thanks and oops. :-)
Find all posts by this user
Quote this message in a reply
03-19-2017, 08:51 PM
Post: #13
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
There are some other programs on the rskey.org/gene site that are candidates to be put into the emulator libraries:

HP-67 Games (some are in the 41CL rom 67FUN)

HP-67 Golf : http://rskey.org/gene/calcmuseum/67golf.htm

HP-67 Tic-Tac-Toe: http://rskey.org/gene/calcmuseum/67tictac.htm

HP-67 2D Star Trek: http://rskey.org/gene/hpgene/67sttrk.htm


And some for the HP 65

Business programs:

One of my favorites: Business Function expansion: http://rskey.org/gene/hpgene/hp65bus.html

These two replace about 20 cards in finance library!
TVM with I% unknown: http://rskey.org/gene/calcgene/ann65i.htm
TVM with I% known: http://rskey.org/gene/calcgene/ann65.htm

Games:

HP-65 Viking Lander: http://rskey.org/gene/calcmuseum/65viking.htm

HP-65 Lunar Lander: http://rskey.org/gene/calcmuseum/65lunar.htm

HP-65 3 digit bagels: http://rskey.org/gene/calcmuseum/65bagels.htm

HP-65 1130 game: http://rskey.org/gene/calcmuseum/651130.htm

HP-65 Tic-Tac-Toe: http://rskey.org/gene/calcmuseum/65tictac.htm
Find all posts by this user
Quote this message in a reply
03-19-2017, 10:00 PM
Post: #14
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
Speaking of Cuveesoft.ch emulators, Willy has now updated his programmable version of the HP-32E (RPN-32 CE) with some exciting new features. Not only does it now have 12 conditionals, but it is now capable of importing any program for GO-25 SciRPN (HP-25 simulator). Instructions on how to move programs from GO-25 to RPN-32 are at:
http://www.cuveesoft.ch/rpn32/p4.html

Version 1.5 also added these functions: ABS, NOP, RAND (RNG) and CSTK (clear stack).


Regards,
Bob
Find all posts by this user
Quote this message in a reply
03-20-2017, 10:35 AM (This post was last modified: 03-20-2017 10:40 AM by Willy R. Kunz.)
Post: #15
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-19-2017 08:51 PM)Gene Wrote:  There are some other programs on the rskey.org/gene site that are candidates to be put into the emulator libraries:



And some for the HP 65

Business programs:

One of my favorites: Business Function expansion: http://rskey.org/gene/hpgene/hp65bus.html


I will look into these programs, Gene.

One thing I noticed. In the "Business Functions" program for HP-65, the part "Percent of a total (or sum)" doesn't seem to work. In fact, if you try the example "What percent of 250 is 80?" by entering 250, ENTER, 80, then single-step the program, you'll see that 250 gets pushed from the stack before being used in the calculation, leaving the result -1 instead of 32.
Find all posts by this user
Quote this message in a reply
03-20-2017, 11:10 AM
Post: #16
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
Aha. I will check into the original source. Thank you.
Find all posts by this user
Quote this message in a reply
03-20-2017, 04:24 PM
Post: #17
RE: Cuveesoft.ch emulators - getting programs to them on an iPhone
(03-20-2017 11:10 AM)Gene Wrote:  Aha. I will check into the original source. Thank you.

Not to worry. Turns out it's only a documentation error. To perform the calculation, you're supposed to press RTN D, not RTN R/S.
Find all posts by this user
Quote this message in a reply
Post Reply 




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