HP41 Functions Address Table (F.A.T.)



#2

HI Folks,


Long time no write ...

As I can remember, the HP41 FAT size is 128 bytes, with 2 bytes / Global Label (GL) or Data File (DF).

Question : is the Module title included in this FAT ?

In other words : what is the maximum number of GL's which can fit into one single 8K ROM : 64 GL's (if Module title not included in the FAT), or 63 GL's (if Module title already takes up 2 Bytes in the FAT).

Thanks in advance for your reply : it will save me time to dig out this information somewhere from my dusty documentation.

Kermit

Antoine M. "Kermit" Couëtte


#3

Hi Antoine, the module title (typically those header functions with a hyphen in the function name) counts like another function, so the total is 64 functions in the FAT.

Cheers,
ÁM

Edited: 19 July 2013, 11:00 a.m.


#4

Hi Ángel

Thanks for your reply.

Sorry for me being stupid. But does your reply mean that - since the Module Title (as per your description) already takes up 1 function slot (i.e. 2 bytes of the pre-existing 128 bytes) - the maximum number of remaining available GL's falls down to 63. Right ?

Kermit

Edited: 19 July 2013, 11:22 a.m.


#5

Quote:
the maximum number of remaining available GL's falls down to 63. Right ?

Right. This is a design limitation of the 41 OS, where the number of XROM functions is limited,, as it is the number of XROM's (due to the allotted space in the byte table).

64 GL's (or 63 plus the ROM title) is typically a good compromise for mid-sized FOCAL programs. Actually it usually fares better with FOCAL programs than it does with MCODE, where the average function length is smaller.

Cheers,
'AM

Edited: 20 July 2013, 1:58 a.m. after one or more responses were posted


#6

Thank you so much, Ángel

Kermit


#7

Maybe it's of interest in that context that the module title can be "abused" as a normal function. It's not mandatory that there is nothing but an immediate return to OS in the code section of a module header, you can "hide" complex funtionality there. For example the module headers of the CCD rom provide useful functionality.


#8

Thank you very much Michael for your reply.

I one of my 2 * 32 K ASTRONAV Software Modules, I was unable to load 64 Functions in addition to Module title. Thanks to the precious information given by Ángel - Thanks again Ángel ! :-) - and through reshuffling programs between 2 such Modules, I could fill up one of them with Module title, 63 Global Labels and 0 byte left, while overall saving 4 bytes. Happy me !

I do not need the "trick" you have mentioned, but anyway it is very interesting to know that it does exist and could be used if necessary.

Thanks again for your information, and

Best Regards

Kermit

Antoine M. "Kermit" Couëtte


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP Prime touch periodic table : new version Mic 4 248 11-25-2013, 05:29 PM
Last Post: Terje Vallestad
  Touch periodic table on HP Prime - revisited Terje Vallestad 2 175 11-23-2013, 11:47 AM
Last Post: Mic
  [41CL] New Extra Functions version Monte Dalrymple 0 154 11-08-2013, 04:32 PM
Last Post: Monte Dalrymple
  HP Prime: in need of help with defining functions Alberto Candel 14 662 10-27-2013, 10:48 AM
Last Post: Alberto Candel
  Touch periodic table on HP Prime Mic 30 1,219 10-27-2013, 04:45 AM
Last Post: Les Koller
  Periodic table for HP Prime Mic 15 611 10-19-2013, 12:20 PM
Last Post: Joseph Ec
  HP Prime spreadsheet functions SanS 0 340 10-04-2013, 04:23 AM
Last Post: SanS
  Stats functions on the HP34S Nicholas van Stigt 5 281 09-24-2013, 02:45 AM
Last Post: Nick_S
  Trig Functions Howard Owen 11 514 09-16-2013, 02:53 PM
Last Post: Fred Lusk
  50g piecewise functions Kurt Fankhauser 6 300 09-15-2013, 08:01 PM
Last Post: Kurt Fankhauser

Forum Jump: