home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp48 / 4247 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  3.7 KB

  1. Path: sparky!uunet!pipex!unipalm!uknet!mcsun!news.funet.fi!funic!nntp.hut.fi!nntp.hut.fi!mheiskan
  2. From: mheiskan@hut.fi (Mika Heiskanen)
  3. Newsgroups: comp.sys.hp48
  4. Subject: Re: XLIB headers???
  5. Message-ID: <MHEISKAN.92Aug12154308@vipunen.hut.fi>
  6. Date: 12 Aug 92 14:43:08 GMT
  7. References: <MHEISKAN.92Aug12010216@vipunen.hut.fi>
  8. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  9. Reply-To: mheiskan@.vipunen.hut.fi
  10. Distribution: comp
  11. Organization: Helsinki University of Technology - Finland
  12. Lines: 76
  13. In-Reply-To: mheiskan@hut.fi's message of 12 Aug 92 01:02:16
  14. Nntp-Posting-Host: vipunen.hut.fi
  15.  
  16.  
  17. Here's an old article posted to me by KK.
  18.  
  19. -------------------------------< cut here >----------------------------------
  20.  
  21. Hello all.
  22.  
  23. I've been looking at the, for lack of a better (ie, HP's) word,
  24. algebraic-flags found before each named XLIB that is a program.
  25. (Algebraics, etc. do not have these flags.)  I do have to make one
  26. disclaimer, though: everything below is conjecture on my part, based on
  27. perusal of libraries 2 and 700h in the 48's ROM, and of the output of
  28. usrlib.  Therefore, use this at your own risk.  But if you know that I'm
  29. wrong, tell me so so that we all can benefit!
  30.  
  31. If we assume that the `D' in D9d20....b2130 is at address N, then addresses
  32. N-3 to N-1 hold the xlib`s number w/in its library, addresses N-6 to N-4
  33. hold the library's number, and addresses N-9 to N-7 hold the `algebraic-
  34. flags.'  What I would like is to know what each bit of these flags
  35. signifies and how to use it in my libraries.  What I've been albe to
  36. discern is below, a minimal subset of what it could be.
  37.  
  38. To indicate each of the flags, I'll use the convention (xxx) where x is a
  39. hex integer.  Thus, (800), (400), (200), (100) are the bits in the nybble
  40. at address N-9.
  41.  
  42. Flag (400) indicates if the word can be integrated.
  43. Flag (080) indicates if the word can be differentiated.
  44. Flag (040) indicates if hte word can be inverted (ie., solved by ROOT).
  45. *See below for a comment on these.*
  46.  
  47. If flag (001) is set, it usually means that the word's symbolic syntax is
  48. not the standard prefix format.  (Ie, 'SIN(X)' or 'MAX(A,B)' are standard
  49. prefix format, while 'X!' or 'A MOD B' are not.)
  50.  
  51. Flag (004) works with (001) in a way I haven't figured out yet.
  52.  
  53. If flag (008) is set, then the N-9 and N-8 nybbles are ignored.  In this
  54. way RPN commands can save a byte each by not including the N-8 or N-9
  55. nybbles.
  56.  
  57. Using sad, I've documented these occurances in library 2:
  58. 000, 3A1, 8C5, 080, 8C0, 005, CC5, 105, CC0, 400, 4C5, 4C0, 001, 800, 7A5,
  59. 3A5, 121, A, E, 8.
  60.  
  61. Obviously more needs to be discovered/leaked ;^) but I hope that this can
  62. be useful to anyone trying to implement libraries containing xlibs useable
  63. in algebraics.
  64.  
  65. NB:  wrt the integrate, differentiate and solve flags, obviously info must
  66. be kept somewhere to indicate that, eg. ACOS is the inverse of COS.  Where
  67. that is kept and if external libraries can hook in to that/those table(s) I
  68. do not know.  At least (000), (001) and (005) can be used for algebraics of
  69. hte form: 'FACT(X)', 'X!', 'X+Y' respectively.  (Some of the commands that
  70. have (005) as their flags do not appear to me to be infix, and some with
  71. (001) do not appear to be postfix (eg, NOT and MOD, respectively). (NOT is
  72. "prefix_w/o_parentheses" and MOD is "infix_with_spaces.")
  73.  
  74. BTW:  I hope I'm not predicting vaporware, but don't be surprised if RPLC
  75. goes beta by the end of March.
  76.  
  77. Happy 48'ing!
  78.  
  79. -JimC
  80. --
  81. James H. Cloos, Jr.             Phone:  +1 716 673-1250
  82. cloos@ACSU.Buffalo.EDU          Snail:  PersonalZipCode:  14048-0772, USA
  83. cloos@ub.UUCP                   Quote:  <>
  84. -------------------------------------------------------------------------------
  85.  
  86. The obvious question is: Has anything new come up after this?
  87.  
  88.    --
  89.    --> mheiskan@vipunen.hut.fi
  90. --
  91. --> mheiskan@vipunen.hut.fi
  92.