HPP41 - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: HPP41 (/thread-12557.html) |
HPP41 - Oulan - 03-04-2019 02:05 PM 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 .... Silly me : a simple K:=WAIT will do the trick I hope and without USER mode (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) RE: HPP41 - cdmackay - 03-04-2019 04:17 PM thanks Olivier! RE: HPP41 - Jlouis - 03-04-2019 07:25 PM First, really thanks for this Olivier Second, and I apologize if it is a dumb question, but how can I install it ? TIA RE: HPP41 - cdmackay - 03-04-2019 10:09 PM (03-04-2019 07:25 PM)Jlouis Wrote: First, really thanks for this Olivier 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. RE: HPP41 - Oulan - 03-05-2019 08:38 PM 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 RE: HPP41 - Oulan - 03-13-2019 09:10 AM 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:
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 RE: HPP41 - cdmackay - 03-13-2019 06:25 PM thanks for your efforts; it's a shame you're giving up on it, but the cpu perf issue sounds annoying. RE: HPP41 - Jacob Wall - 03-14-2019 12:57 AM 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. RE: HPP41 - grsbanks - 03-14-2019 09:10 AM (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. |