editmacro and runmacro: 3/9/2015 Update
|
04-28-2018, 02:04 AM
Post: #3
|
|||
|
|||
RE: editmacro and runmacro: 3/9/2015 Update
Just stumbled upon this - great program Eddie. Makes me wish I could paste HP42S and HP41 listings straight in and run them!
As a step in that direction, here is a supplementary function aslist that lets you store RPN listings in Notes. This way RPN program listings can be copied, pasted and run, without needing to use editmacro() or a list editor. For example, assuming the following simple RPN code (which counts from whatever number you input, up to 5) is in a Prime Note called "rpn1" Code:
Code:
or you can simply convert the note into a normal list for editing and later running with runmacro(). Code:
Here is the code, which should be just pasted into a new program on the prime called "aslist" (of course the name of the program doesn't matter, its the exported function name aslist that matters). Code:
Ideally aslist would be enhanced to strip line numbers and trailing comments - allowing the easy copy/paste and running of the examples in the pdf documentation supplied with editmacro/runmacro. As for enhancing runmacro() to be HP41/42 compatible - I think that would mainly be a matter of adding many more commands to runmacro. Labels and registers would have to be upgraded to two digit numbers. Yeah lots of work, but not rocket science. Perhaps this could become a github project with people contributing... I wonder if a Prime "App" (not sure which one is the best starting point to clone) could be a suitable place to house a HP41/42 emulator - it would be nice to have proper help, views and that sort of thing. Not sure if an app could house editable RPN listings as nicely as notes can, though. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
editmacro and runmacro: 3/9/2015 Update - Eddie W. Shore - 03-08-2015, 01:57 AM
RE: editmacro and runmacro: 3/9/2015 Update - billydb101 - 06-18-2016, 09:47 PM
RE: editmacro and runmacro: 3/9/2015 Update - tcab - 04-28-2018 02:04 AM
|
User(s) browsing this thread: 1 Guest(s)