home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp48 / 7446 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.4 KB

  1. 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
  2. From: akcs.joehorn@hpcvbbs.cv.hp.com (Joseph K. Horn)
  3. Newsgroups: comp.sys.hp48
  4. Subject: Re: SysRPL Questions
  5. Message-ID: <2b57c9aa.2673.1comp.sys.hp48.1@hpcvbbs.cv.hp.com>
  6. Date: 16 Jan 93 08:40:03 GMT
  7. References: <1j486sINN4jm@aurora.engr.LaTech.edu>
  8. Lines: 46
  9.  
  10. ramos@engr.LaTech.edu [Alex Ramos] writes:
  11.  
  12. > Are TRUE & FALSE normal system binaries? Can you convert
  13. > them to real flags (1 or 0) ?
  14.  
  15. This may be a bit confusing, so listen closely.  There are two totally
  16. different kinds of things, both called "flags".  The first kind we're
  17. all familiar with: the 64 user flags (1 through 64) and the 64 system
  18. flags (-1 through -64).  The second kind is the result of a test,
  19. either a TRUE or a FALSE.  In User RPL, these are represented by the
  20. reals 1 and 0, respectively.  But in System RPL these logic "flags"
  21. are actual objects in the operating system, residing at #03A81h (TRUE)
  22. and at #0CA30h (FALSE).  They are in no sense "system binaries".  See
  23. Chapter 17 in RPLMAN.DOC for complete details.
  24.  
  25. Yes, they can be converted to real "flags": use COERCEFLAG, a
  26. supported System RPL word at address E0835.  This is also explained in
  27. RPLMAN.DOC, Chapter 17.
  28.  
  29. > How can you run a user RPL prog from a SysRPL prog? I lost
  30. > memory everytime I tried this.
  31.  
  32. Same as in User RPL: just embed its name in the program.  Keep in mind
  33. that name objects are identified as such by ID.  Example: to run a
  34. User RPL program called 'ABC' from a System RPL program, just include
  35. ID ABC in the program.  Note: some System RPL development libraries
  36. require tic marks around the name: ID 'ABC'.  HP's software does not.
  37.  
  38. > What type of real number are the user reals? % or %% ? (% is my
  39. > guess)
  40.  
  41. Right.  Long reals are not supposed to be available to the user.
  42.  
  43. > When you put system objects on the stack do you have to go through
  44. > some special procedure to mark the stack? I ask that because I wrote
  45. > a silly program to put a few integers on the stack but didnt work.
  46. > (it ran but not appeared on the stack)
  47.  
  48. No.  For example,
  49.  
  50.        ::  ONE  TWO  THREE  ;
  51.  
  52. exits with <1h> <2h> <3h> on the stack (assuming you're in HEX mode).
  53.  
  54. -Joseph K. Horn-   -Peripheral Vision, Ltd.-
  55. akcs.joehorn@hpcvbbs.cv.hp.com
  56. Disclaimer: I don't work for HP, EduCALC, or anybody else.
  57.