Lesson 37: adding and using libraries, To use a library, it must be, To store a library into port memory manually – HP 48G User Manual

Page 106

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

Lesson 37: Adding and Using Libraries

A

l i b r a r y

is a collection of pre-programmed commands that act as

extensions to the built-in command set. The HP 48 does

n o t

have the

built-in capacity to create libraries, but it can

i n s t a l l

and

u s e

libraries

that have been created elsewhere (on other computers) and transferred
to the HP 48,

If you have an HP 48G model, you must download a library into

your machine using either the infrared port (from another HP 48) or
the serial port (from a personal computer). Refer to chapter 27 of

I I P 4 8 G S e r i e s U s e r ' s G u i d e

for details about serial port transfer.

If you have an HP 48GX model, you have the additional option of
installing a plug-in card containing the library into one of the two

expansion card slots. Refer to chapter 28 of

H P ^ 8 G S e r i e s U s e r ’ s

G u i d e

for more details about plug-in cards.

Libraries, like any other object, can be placed on the stack or stored in

user memory. However, libraries

c a n n o t h e u s e d

while stored on the

stack or in user memory.

To use a library, it must be:

m S t o r e d i n p o r t m e m o r y

(Port 0 for the HP 48G or Ports 0-32 for the

HP 48GX). All libraries that are distributed on plug-in cards are
already in port memory whenever the card is installed in its slot.
Libraries that are downloaded into the current directory must be

moved into port memory by you.

A t t a c h e d to a d i r e c t o r y .

Most libraries are self-attaching—that is,

they automatically attach themselves to the HOME directory as

soon as you turn on the HP 48 again after installing them in port

memory. Others will need to be explicitly attached by you.

To Store a library into port memory manually:

1. Put the library object on the stack. (Note its number and name.)

2. Enter the port number for storing the library (0, 1, 2, ... 32).

3. Press fSTOd.

4. Optional: Purge the original library object from user memory.

Special Features 8-7

Advertising