From: Mika Heiskanen <mheiskan@hut.fi>
Subject:  v06i016:  mstack_mh - MStack a Display Utility v1.0, Part01/01
Newsgroups: comp.sources.hp48
Organization: Helsinki University of Technology - Finland
Followup-To: comp.sys.hp48
Approved: spell@seq.uncwil.edu

Checksum: 3561338579 (verify with brik -cv)
Submitted-by: Mika Heiskanen <mheiskan@hut.fi>
Posting-number: Volume 6, Issue 16
Archive-name: mstack_mh/part01

Hiya,

After trying DISP5, STK7, HyperStack I combined some of the features and the
result is MStack v1.0

MStack replaces the internal display routine with a new one that can:
- display 5 or 7 lines
- display multi-multi lines (Adapted from HyperStack)
- display object adresses instead, useful for hackers
- display the entry name for the object instead, if you have RPL library
  installed
- display long real/complex numbers (with normal accuray only)

MStack is installed as a library with id 1067 (#42Bh), length is 1250.5 bytes.
User flags 40-44 are used to indicate modes, which are according to priority:
    Clr/Set
40: Nada / Turn MStack off
41: 5 stack lines (status area visible) / 7 stack lines (st. area not visible)
44: Nada / Address mode (Adresses are displayed instead of objets)
42: Nada / HP mode (If RPL library is installed, ->Name is called. If result
           is a string, it is displayed, else normal display routine is called)
           If RPL library is not installed, flag has no effet.
43: Nada / Multi-multi line mode (Stack levels other than 1 will be displayed 
           in multiline fashion too

The library provides following programs:
MSTK: Toggles flag 40, then starts MStack if flag is clr, else normal display
S5/7: Toggles flag 41
N/HP: Toggles flag 42
N/ML: Toggles flag 43
N/AD: Toggles flag 44

4 last programs also display whether the flag is set/cleared. This is done
by flashing ON/OFF on the menu key. It will work on CST menus too even if
displaced from the position on the library menu.
If prg mode is on, this flashing does not occur.

Flag 45 will be used to enable array form display for lists in the next
version. (Not released soon).

Any ideas for improvements & new modes are welcome.

Installing:

Decode with UUDECODE, download, recall lib to stack, enter port number (0,1,2)
press STO, turn calc OFF and on again. MStack attaches itself to HOME.

Purging:

HOME :port:1067 DUP DETACH PURGE

Credits naturally go to the programmers of DISP5, STK7, and HyperStack and
DispStack (inbuilt) whose programs I've used as models.

--> mheiskan@vipunen.hut.fi

