Post Reply 
Still needed for the HP 41CL
08-05-2016, 04:55 PM
Post: #18
RE: Still needed for the HP 41CL
(08-05-2016 02:52 PM)Sylvain Cote Wrote:  
(08-05-2016 01:42 PM)Ángel Martin Wrote:  However I've looked at the manual and those 222 data files may be a problem: assuming each of those requires 10 registers, we're talking of a humongous database of ~15k !! More than three ROMS just to put all that data in...

I did not looked at that part yet, but you are right this is an issue, actually it is worst than that.
Using the raw version of the W6X who contains a parser and 4 data loader as a reference, the math gives the following:
512 bytes (RAW) / 4 (data loaders) = 128 bytes / 7 (bytes/register) = 18.29 -> rounded to 19 registers
19 registers (133 bytes, per data loader) x 222 data sets = 4218 registers or 29526 bytes.
Adding to the already used 8KB for program code we are looking at something like a 40KB ROM which does not fit into the 32KB directly available.
Even with all the tricks that can be applied, 4 x bank switching, a bank switcher function in MCODE, etc, we are still looking at a 2 slots solution for the 41CL or an MLDL (Clonix/NoV/MLDL2K/etc).

Well maybe we're both wound around the axle here and it's not that bad: each data file won't take 10 registers, times 7 bytes = 70 bytes - but only as many bytes as needed, which it's a function of the constants values. Looking at those values the average is around 5-6 bytes per value, for a total of 50-60 bytes per data file...

Friday evening, my brain is fried so this may be complete BS... let's ruminate on it a little longer before we make a call one way or another.

"To live or die by your own sword one must first learn to wield it aptly."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Still needed for the HP 41CL - Gene - 07-18-2016, 02:40 PM
RE: Still needed for the HP 41CL - Gene - 07-18-2016, 03:25 PM
RE: Still needed for the HP 41CL - Gene - 07-19-2016, 02:21 AM
RE: Still needed for the HP 41CL - Ángel Martin - 08-05-2016 04:55 PM



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