home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!howland.reston.ans.net!usc!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!news1.boi.hp.com!hp-pcd!hpcvra!rnews!hpcvbbs!akcs.joehorn
- From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
- Newsgroups: comp.sys.hp48
- Subject: Re: SysRPL Questions
- Message-ID: <2b57c9aa.2673.1comp.sys.hp48.1@hpcvbbs.cv.hp.com>
- Date: 16 Jan 93 08:40:03 GMT
- References: <1j486sINN4jm@aurora.engr.LaTech.edu>
- Lines: 46
-
- ramos@engr.LaTech.edu [Alex Ramos] writes:
-
- > Are TRUE & FALSE normal system binaries? Can you convert
- > them to real flags (1 or 0) ?
-
- This may be a bit confusing, so listen closely. There are two totally
- different kinds of things, both called "flags". The first kind we're
- all familiar with: the 64 user flags (1 through 64) and the 64 system
- flags (-1 through -64). The second kind is the result of a test,
- either a TRUE or a FALSE. In User RPL, these are represented by the
- reals 1 and 0, respectively. But in System RPL these logic "flags"
- are actual objects in the operating system, residing at #03A81h (TRUE)
- and at #0CA30h (FALSE). They are in no sense "system binaries". See
- Chapter 17 in RPLMAN.DOC for complete details.
-
- Yes, they can be converted to real "flags": use COERCEFLAG, a
- supported System RPL word at address E0835. This is also explained in
- RPLMAN.DOC, Chapter 17.
-
- > How can you run a user RPL prog from a SysRPL prog? I lost
- > memory everytime I tried this.
-
- Same as in User RPL: just embed its name in the program. Keep in mind
- that name objects are identified as such by ID. Example: to run a
- User RPL program called 'ABC' from a System RPL program, just include
- ID ABC in the program. Note: some System RPL development libraries
- require tic marks around the name: ID 'ABC'. HP's software does not.
-
- > What type of real number are the user reals? % or %% ? (% is my
- > guess)
-
- Right. Long reals are not supposed to be available to the user.
-
- > When you put system objects on the stack do you have to go through
- > some special procedure to mark the stack? I ask that because I wrote
- > a silly program to put a few integers on the stack but didnt work.
- > (it ran but not appeared on the stack)
-
- No. For example,
-
- :: ONE TWO THREE ;
-
- exits with <1h> <2h> <3h> on the stack (assuming you're in HEX mode).
-
- -Joseph K. Horn- -Peripheral Vision, Ltd.-
- akcs.joehorn@hpcvbbs.cv.hp.com
- Disclaimer: I don't work for HP, EduCALC, or anybody else.
-