41C mCode routines - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: 41C mCode routines (/thread-58146.html) |
41C mCode routines - DavidMY - 06-07-2004 If anyone is interested in 41C mcode routines (besides Angel and myself) I have a some code to offer:
I have written a series of functions to implement recall math on the 41 something I always missed. Like code for multifunctions in the HEXPAC module you program a function and follow with a number in the next line designating the register. Example 12 RCL+ ,13 010 which means add the number in User Register 10 to the X-register without pushing the stack. The functions include direct: RCL+, RCL-, RCL*, RCL/ and indirect: RCLI+, RCLI-, RCLI*, RCLI/.
Because a general purpose routine was developed to capture the next program line(s) other functions were able to be developed:
Once again by using .0n (where n=0-5) Stack/Status registers may be used. Also because a general capture routine was available a general multifunction routine was developed allowing for 1 to 999 subroutines to be called; i.e., 10 Multi1 11 001 calls subfunction 1. mCoders simply build a jump table to the subfunctions and set a guard byte to the size of the number of the subfunctions and compile the code.
There are limitations: 1,2,and 3 will be addressed in future code as I get to it. So, if anyone is interested in code for a discontinued,20+ year old calculator I'll be glad to publish it. You can comment here or email me. I have a general "test image" I use with emulators and if there's enough interest and if Warren allows maybe I can package up source and mod image and ship it off to him for posting on "that other site." Or if only a few want I can probably email the file(s) but this is slow as my day job is busy and tends to turn into a day and night job. (Plus I'm a single dad with a 12 yr. old son and those of you with kids know that at that age chasing after them is a full time job in itself)
DavidMY
Re: 41C mCode routines - Ángel Martin - 06-08-2004 Hi David, good to hear from you again. As you stated, I'm interested for sure. I was wondering whether you've made enhancements to the image you sent me a few months ago. At that time you were still working on refinements to your RCL math routines, so I imagine there's improvements made now. I'd like to add your code to a couple of functions in the 41Z project, for the STO and RCL of complex numbers, using two standard registers at a time. Could you send me the new code? And as far as making it available, I'd say it is a great idea. The 41 archive site is perfect as repository for this type of works, so I'd encourage you to go ahead with it.
Best,
Re: 41C mCode routines - Meindert Kuipers - 06-09-2004 It is good to hear that there is still mcode being developed. And yes, please publish! Best way is to create a ROM and Warren will gladly put it on his website.
Meindert
|