Post Reply 
HP50g ram and working dir.
08-18-2017, 08:52 PM
Post: #5
RE: HP50g ram and working dir.
Hello,

if you want to store a directory in Port0/1/2 (remember Port3 is not a port) simply put the dir on level 1 and then store it.

Example:

1: DIR
TEST 99
END

This is a very simple dir and a directory is an object as everything else (Prologue 02A96).

Then simply do :1:YouNameIt and press [STO] and your dir is in Port1

> If the filer can do it
The Filer can do it, as it "browses" through the object.
If you want to do this, than simply write a piece of software that can step through/show/browse a directory object - it is this simple as everything in RPL is an object :-)


A simple quote from "Introduction to Saturn Assembly Language" (available on hpcalc.org):

Part V: Objects
55 Objects overview
Objects are an essential part of the HP 48 and 49. Everything put on the stack is an object, and they’re all encoded the same
way: they start with a 5-nibble prologue that identifies the object, and then the object follows in what is called the “body” of
the object. The object is, in a way, a shell, and data is put inside of it.
What is the prologue? It’s not only something to identify the object, but in fact it also contains the address of a code routine
that is used to execute the object. So the prologue not only identifies something but also executes it.
Some objects, when evaluated, just put themselves on the stack, like strings. If you [EVAL] a string, it remains on the stack.
But, if you put a global name onto the stack and [EVAL] it, the contents of the variable that corresponds to the global name is
put on the stack. The global name’s prologue was evaluated, and it pushed the variable’s contents onto the stack.
We are now going to study each object type of the HP 48 and 49, so this is a rather long part.

HTH,
Andreas

http://www.software49g.gmxhome.de
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP50g ram and working dir. - pier4r - 08-16-2017, 01:55 PM
RE: HP50g ram and working dir. - pier4r - 08-17-2017, 07:16 AM
RE: HP50g ram and working dir. - pier4r - 08-18-2017, 08:11 PM
RE: HP50g ram and working dir. - pier4r - 08-19-2017, 06:20 AM
RE: HP50g ram and working dir. - Joe Horn - 08-19-2017, 06:51 AM
RE: HP50g ram and working dir. - pier4r - 08-19-2017, 09:54 AM
RE: HP50g ram and working dir. - Software49g - 08-18-2017 08:52 PM
RE: HP50g ram and working dir. - pier4r - 08-18-2017, 09:36 PM
RE: HP50g ram and working dir. - pier4r - 08-20-2017, 10:15 AM
RE: HP50g ram and working dir. - Joe Horn - 08-20-2017, 08:51 PM
RE: HP50g ram and working dir. - pier4r - 08-20-2017, 07:29 PM
RE: HP50g ram and working dir. - pier4r - 08-20-2017, 10:23 PM
RE: HP50g ram and working dir. - Joe Horn - 08-21-2017, 02:15 AM
RE: HP50g ram and working dir. - pier4r - 08-21-2017, 05:56 AM
RE: HP50g ram and working dir. - pier4r - 08-21-2017, 08:15 AM



User(s) browsing this thread: 1 Guest(s)