Re: HP-41 New versions of your favorite modules - with an AOS twist :-) Message #12 Posted by 聲gel Martin on 21 June 2013, 2:02 a.m., in response to message #9 by Michael Fehlhammer
Hi guys, sorry I wasn't clear in the previous post, let me elaborate.
No, I have not invented/discovered a way to add a fifth bank on a given page - that'd require a new unused instruction (ENBNK5) and modifying the BS support in every system known to man (Clonix, CL, V41,...) so it's pretty much out of the question.
The current SandMath is a 2x2 module, that is 2 pages with 2 banks each. So what I've done is just add a third bank to the upper page, so it's now a 2+3 module:
2x banks in the lower page (SandMath 44), and
3x banks in the upper page (High Level Math).
I could have done it reversed, adding the third bank to the lower page instead (and in fact I did both versions while debugging the pesky issues I struggled with for a while), but on either case the module footprint continues to be 8k. So finally I used the upper page, the "High Level Math" as a more logical location.
Three new functions needed to be added to the main FAT, thus I moved three functions to the sub-functions category to make room for them - but more about that in a separate thread.
Really the ultimate 4x4 module is practically impossible to do, even with secondary and tertiary sub-FATS (which can already be confusing enough). The main limitation is that user code (FOCAL) can only be located in the main bank, and this drastically limits the suitable material, so to speak.
|