Path: seq!spell
From: Detlef Mueller <detlef@mwhh.hanse.de>
Subject:  v01i033:  updir - UPDIR v1.1 (Bug fix), Part01/01
Newsgroups: comp.sources.hp48
Keywords: UPDIR UP tool bugfix
Organization: M. Witt
Followup-To: comp.sys.hp48
Approved: spell@seq.uncwil.edu

Checksum: 1523641503 (verify with brik -cv)
Submitted-by: Detlef Mueller <detlef@mwhh.hanse.de>
Posting-number: Volume 1, Issue 33
Archive-name: updir/part01
Supersedes: updir: Volume 1, Issue 31


Hi, all.

Forgive me,

the first version of the UP program I post, has a bug. I forget to handle
the temporary menu. The sequence 'GetMenu% %IP>#' returns zero if the
actual menu is the TMENU. In this case 'NTHCOMPDROP' didn't return any
object. This can end up in a memory lost in further actions (this is the
way I detect the bug, system RPL don't forgive any error :-). I hope,
nobody has lost his memory by this way ...
Also the binary download header in the source code was missing (I use a
batch job to compile my programs and link them with a seperate header).
I shouldn't post at 3:00 in the morning ...
END_RDME

Here is the corrected article :

BEGIN_DOC up.doc
In Mar 90 Jake G Schwartz (Jake-S@cup.portal.com) posted an UP function
for built-in Menus.

> ... several of the built-in (ROM) menus in the machine are nested in a
> tree structure as low as three levels deep.  The user manual on page 56
> advises that one doesn't traverse these like a tree; one should simply
> go to the new one.  In many cases, this requires more than a keystroke
> or two.
  ...
> If UP is assigned to the UP keyboard key, its use becomes transparent
> when the HP48 is in USER mode.  In the first weeks of calculator use, ROM
> menu tree traversal is helpful in order to get a feel for where the
> literally hundreds of functions reside in the machine.
  ...
> Rules:
> -----
>
> If the current        The action of
> menu is:              UP is:
> -----------------------------------
> Menu with no          LAST MENU
> parent
>
> Menu with a           Moves to parent
> parent                menu, page of
>                       parent key
>
> RAM directory         UPDIR
>
> Custom Menu           LAST MENU
>

  Library sub-menu	Library menu

  TMENU			LAST MENU

>
> Jake Schwartz

I've convert UP into system-RPL and add support for library sub-menues.

If you only want to use UP, download UP.ASC into your HP48, execute ASC\->
and store the result into a variable in the HOME directory.

To generate UP, put the listings of UP.S and UP.M in the appropriate files,
then invoke the following commandlines at the MS-DOS (urgh) prompt:

	rplcomp up.s up.a
	sasm -e -N up.a
	sload -H up.m

BTW, could anyone EMAIL me routines to support fast bitblit ? I'll need
them in my PACMAN version (no time to write my own set :-).
Thanks.

Tschuess (German slang of 'bye' =-),
	Detlef 8-)

P.S.
I wrote a working RPL decompiler library, 26kb in size. It was a hard
job (I think about a RPL compiler .. :), so maybe I'll release it as
shareware. Any comments ?
	Detlef


-- 
+-----------------------------------+---------------------------------------+
|      `What a depressingly         |             Detlef Mueller            |
|         stupid machine`           |          detlef@mwhh.hanse.de         |
|  Marvin in THGTTG, part II, p.48  |...!uunet!mcsun!unido!mcshh!mwhh!detlef|
+-----------------------------------+---------------------------------------+

