TUTORIAL 2: HP48 Objects and variables
What are objects?

An object is simply anything that can be put onto the stack.

Object types
Where to store objects

Data (objects) can be stored in memory in three main ways

Manipulating the stack

Manipulation of the stack, ensures that a program will run at maximum speed, and economise on memory at the same time. DROP & SWAP commands are on the keyboard. Other stack commands are shown by pressing [L-S][Cursor-up].
Stack commands

Memory management

To check the available memory of the calculator
[L-S] [VAR] (MEMORY) |MEM|

To check the size of an object

Put the name of the object on level one.
[L-S] [VAR] (MEMORY) |BYTES|

Variable management

The HOME directory is the "Root" directory of the calculator. Sub-directories are indicated by a little bar above the menu label.

the current path

The directory path leading to the current directory is shown in the message area of the display within
{ HOME ........ }

To get to the HOME directory, from anywhere

Press [R-S] ['] (HOME)

To move up a directory level

Press [L-S] ['] (UPDIR)

To view variables in the current directory

Press [VAR]

If there are more than 6 objects in the directory: Press [NXT] to scroll across the selection.

To scroll in reverse
Press [L-S] [NXT] (PREV)

To delete (purge) an object

Put the name of the object on level 1
Press [L-S] [EEX] (PURGE)

To create a Sub-directory

Press [alpha] [alpha] Name of subdirectory [ENTER]
Then either: [L-S] [VAR] (MEMORY) |DIR| |CRDIR|
or [alpha] [alpha] CRDIR

To remove a sub-directory Be careful !

Put the name of the sub-directory on level one
then: [L-S] [VAR] (MEMORY) |DIR| |PGDIR|

To copy an object or sub-directory to another directory

Put the name of the object on level, press [ENTER] to duplicate it
Press [R-S] [STO] (RCL) to recall the object to the stack
Get into the destination directory
Press [Right-cursor] to swap
Press [STO]

To move an object to another directory

Follow the same steps for copying and purge the old object.

To rename an object or sub-directory

Put the name of the object on level, press [ENTER] to duplicate it
Press [R-S] [STO] (RCL) to recall the object to the stack
Press [alpha] [alpha] NEWNAME [ENTER] [STO]
Purge the object OLDNAME

To change the ORDER of objects in the varaible menu

Press [L-S] [+] ({})
Press the menu keys of each object in the desired order you wish them to appear in the menu display.
Press [ENTER]
Press [L-S] [VAR] |DIR| |ORDER|

To edit an object (including programs)

Put the name of the object on level 1
Press [L-S] [+/-] (EDIT)
After editing the object press [ENTER] to save changes


Go to next tutorial

Return to
Tutorial page| Programming tips| Quickclose Homepage|

QUICKCLOSE
ABN 68 801 812 834
PO Box 1035 LEICHHARDT NSW 2040 AUSTRALIA
Tel/Fax +61 +2 9550 0010
EMAIL : quickclose@quickclose.com.au

Created with EditPad
Last Update: 18th March 2001
Richard Stanaway