home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp48 / 6685 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.9 KB  |  58 lines

  1. Newsgroups: comp.sys.hp48
  2. Path: sparky!uunet!noc.near.net!analog.com!adi.analog.com!mmh
  3. From: mmh@mercury.analog.com (Marc M. Hoffman)
  4. Subject: ML: an assembler running on the 48. ?on memory allocation
  5. Message-ID: <MMH.93Jan5100659@mercury.analog.com>
  6. Sender: usenet@analog.com
  7. Organization: Analog Devices Inc, Norwood MA, USA
  8. Distribution: comp
  9. Date: Tue, 5 Jan 1993 15:06:59 GMT
  10. Lines: 46
  11.  
  12.  
  13. I have just writen an assembler that runs on the 48.  It is nearing
  14. completion and I have some questions.
  15.  
  16.   1.  Can I avoid allocation of memory by using the memory located at
  17.       what ever 'B' points to?  This would alow me to avoid using the
  18.       memory-allocation copy sequences or allocating some maximum
  19.       amount of memory for the assembler symbol table.
  20.  
  21.       Currently, I compute hueristicly the max amount of space needed.
  22.  
  23.   2.  This 'find_local_var' can it be used to find a global. i.e. does
  24.       it default to something local then to something global.
  25.  
  26.       Or should I get cur_dir and manipulate it myself?
  27.  
  28.   3.  How does the 48 search for a global i.e. (something in a directory).
  29.       Does it just get 'cur_dir' search the directory in a linear
  30.       fashion and if its not found move up 1 level and search this dir
  31.       etc.
  32.  
  33.       [ I would like the assembler to look for a directory called syms
  34.         that the user could add his own constants/ symbols to. ]
  35.  
  36.       DIR
  37.         save_regs    #679b
  38.     restore_regs #67d2
  39.     stralloc     #5b79
  40.         ...
  41.       END
  42.  
  43.   4.  How do the Library hash tables work?   Is there a set of ML
  44.       routines that manipulate hash tables?  
  45.  
  46.   5.  This might be a silly question but I need to know.  Does the 48
  47.       hash names or does it just search in a linear fashion.  { I just
  48.       don't want to create a mess. }
  49.  
  50.  
  51. All ideas, thoughts and flammers are welcome.  
  52. Also who is interested in such a tool.
  53.  
  54. marc.hoffman@analog.com
  55. --
  56. -----------------------
  57. marc.hoffman@analog.com
  58.