Post Reply 
HPP41
03-04-2019, 02:05 PM (This post was last modified: 03-04-2019 03:55 PM by Oulan.)
Post: #1
HPP41
I finaly got an HP Prime G2 from Germany last Thursday.
So to test it a bit I wrote a first draft of an HP41 emulator...
See : HPP41v0

This is a first draft. Only direct key usable in PRIME USER key mode.
I have no idea to deal with 'shift' and 'alpha' ... we can not redefine them in USER mode, and I prefer to avoid a 'loop'. Actually, a normal 41 do like this too, waiting key press to start cpu again. 4 5 SIN seems ok Smile .... Silly me : a simple K:=WAIT will do the trick I hope and without USER mode Wink (no high cpu use in waiting ?) now a v1 with shift & alpha


It reset at each 'start'. About the speed, it is a bit slower than a real 41, same speed as the first C version on a TI83PCE. An ASM version on a TI83PCE is now 5 time faster than a real 41CX (with the time hardware emulated and bank-swapping).

There are certainly some bugs left (ie Lcd prog does not 'left align' the name of a function when pressed as a real 41 does). Feel free to look at code and I am open to any idea to continue it.

P.S. I already 'lost' 200MB of ram ... the first time I re-initialized the calc to get them back. Then again I re-lost 200MB of ram (got only 245.52MB free, had 4xx MB at start) without doing anything special... I will let it like that ... perhaps a garbage collector will start when ram will be too low ... who knows)
Find all posts by this user
Quote this message in a reply
03-04-2019, 04:17 PM
Post: #2
RE: HPP41
thanks Olivier!

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
03-04-2019, 07:25 PM (This post was last modified: 03-04-2019 07:26 PM by Jlouis.)
Post: #3
RE: HPP41
First, really thanks for this Olivier

Second, and I apologize if it is a dumb question, but how can I install it ?

TIA
Find all posts by this user
Quote this message in a reply
03-04-2019, 10:09 PM (This post was last modified: 03-04-2019 10:21 PM by cdmackay.)
Post: #4
RE: HPP41
(03-04-2019 07:25 PM)Jlouis Wrote:  First, really thanks for this Olivier

Second, and I apologize if it is a dumb question, but how can I install it ?

TIA

Click the 'd' download link at the end of the v1 line, at the bottom of that web page.

That will download the v1 zip file, which contains the dir/files that make up the application. Copy those to your Prime as normal. Or possibly the entire zip file?

edit: mind you, it's not copying to my virtual prime, for some reason…

edit: I copied it to Content, then right-click send worked.

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
03-05-2019, 08:38 PM
Post: #5
RE: HPP41
Today a better V2 with a better keyboard

I still have trouble with AVars and AFiles to save state ...
Problem is that with an app when there is a bug, it silently abort, no diagnosis
Find all posts by this user
Quote this message in a reply
03-13-2019, 09:10 AM (This post was last modified: 03-15-2019 01:35 PM by Oulan.)
Post: #6
RE: HPP41
Last V3 release, only one app

See HPP41

Do to variations on speed (cpu throttling ? Usb connection ? garbage collector ?) on the Prime I give up on optimizing this program, execution can go from x1 up to x20 slower. No way to have meaningfull time measurements.

Use XEQ AA in the v3 and see the time displayed:
  1. 31.8 32.3 33.6 33.4 do a deep OFF and relaunch ...
  2. 27.5 27.8 do some other stuff in another app, relaunch ...
  3. 40.0 .. do some other stuff in another app, relaunch ...
  4. bingo crawling speed 547.9, leave it do some other stuff, relaunch...
  5. 26.7 41.6 ...

Other stuff here is launching another version of the 41 emulator and running it with the same test (LBL'AA 100 LBL00 DSE X GOTO00)

I think I will continue the TI83PCE one. Prime is fine for calculus, but not very friendly for CPU heavy programs.

P.S. tests were done without USB connection
Find all posts by this user
Quote this message in a reply
03-13-2019, 06:25 PM
Post: #7
RE: HPP41
thanks for your efforts; it's a shame you're giving up on it, but the cpu perf issue sounds annoying.

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
03-14-2019, 12:57 AM
Post: #8
RE: HPP41
I have found that if the USB cable is plugged in, things can unexpectedly slow down dramatically and seemingly at random. I have not had those issues without the cable plugged in. Having the connectivity kit running while plugged in may also be a factor.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-14-2019, 09:10 AM
Post: #9
RE: HPP41
(03-14-2019 12:57 AM)Jacob Wall Wrote:  I have found that if the USB cable is plugged in, things can unexpectedly slow down dramatically and seemingly at random. I have not had those issues without the cable plugged in. Having the connectivity kit running while plugged in may also be a factor.

It's not unexpected at all. There is constant chatter over the USB link when the calculator is connected to a host computer. That will always steal CPU cycles.
Find all posts by this user
Quote this message in a reply
Post Reply 




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