akcs.dnickel@hpcvbbs.UUCP (Derek Scott Nickel) (01/03/91)
Link Tables in the HP 48SX. A Link Table is how the HP 48SX locates a command given an XLIB number. Link Tables look like very large Binary Integers, but are actually a table of offsets to the commands. <link-table> = <prolog><size><offset-0><offset-1>...<offset-n> <prolog> = 02A4E (BIN5) <size> = number of nibbles remaining (BIN5) <offset-i> = offset from start of <offset-j> to command (BIN5) The Link Tables for the basic HP 48SX are at: 22651 002 (XLIB 2) 22E08 700 (XLIB 1792) 3834F 0F0 (XLIB 240) for example: 22651: 02A4E ! Binary Integer prolog 22656: 0078A ! size 2265B: F6F20 ! XLIB 2 0 is at 1957B (ASR) 22660: F6F3B ! XLIB 2 1 is at 1959B (RL) 22665: F6F56 ! XLIB 2 2 is at 195BB (RLB) . . . Note that the commands for XLIB 240 are stored in the 'hidden' part of the ROM, under the user memory (the XLIB 240 commands do not have associated names). Have fun! Derek S. Nickel