Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!ai-lab!rice-chex!bson From: bson@rice-chex.ai.mit.edu (Jan Brittenson) Newsgroups: comp.sys.handhelds Subject: More on the HP-48 catalog Keywords: hp48 hacks internals Message-ID: <14122@life.ai.mit.edu> Date: 18 Mar 91 21:56:11 GMT Sender: news@ai.mit.edu Organization: nil Lines: 66 This is an addition to my previous post on the built-in catalog routines. I the following RAM locations are used: 70623 Menu key program? 7060a Key program, called with 2: shift code, 1: scan code 70605 Redisplay program 70614 Error hook? 7060f ? 707d3 ? (short) 707c9 Index of leftmost displayed menu entry (short) Local variables are used as follows: 'savedUI Used to save (shallow-bind) the previous set of UI (User Interface?) variables. 2nd local Current point index (1 = first) 3rd local Window point index (index of topmost line) 4th local List of names I also forgot to mention that if the value of a name is a directory, it will appear as "dir", and pressing ENTER will, instead of copying it to the stack, move the catalog into the directory. Here is a small example of how the standard catalog configuration can be used to view a catalog of random strings: @ Call with list of strings on level 1 << LIST-> RCLF -> N F << 1 N START #5B15 SYSEVAL @ String --> Name N ROLL NEXT N ->LIST #3AC0 SYSEVAL SWAP -59 SF @ Fast catalog #47BF0 SYSEVAL @ Walk F STOF >> >> It's probably a better idea to set up a custom configuration with a new key program for the terminal emulator, though. Happy hacking! -- Jan Brittenson bson@ai.mit.edu Read my lisp: no new classes!