home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp48
- Path: sparky!uunet!noc.near.net!analog.com!adi.analog.com!mmh
- From: mmh@mercury.analog.com (Marc M. Hoffman)
- Subject: ML: an assembler running on the 48. ?on memory allocation
- Message-ID: <MMH.93Jan5100659@mercury.analog.com>
- Sender: usenet@analog.com
- Organization: Analog Devices Inc, Norwood MA, USA
- Distribution: comp
- Date: Tue, 5 Jan 1993 15:06:59 GMT
- Lines: 46
-
-
- I have just writen an assembler that runs on the 48. It is nearing
- completion and I have some questions.
-
- 1. Can I avoid allocation of memory by using the memory located at
- what ever 'B' points to? This would alow me to avoid using the
- memory-allocation copy sequences or allocating some maximum
- amount of memory for the assembler symbol table.
-
- Currently, I compute hueristicly the max amount of space needed.
-
- 2. This 'find_local_var' can it be used to find a global. i.e. does
- it default to something local then to something global.
-
- Or should I get cur_dir and manipulate it myself?
-
- 3. How does the 48 search for a global i.e. (something in a directory).
- Does it just get 'cur_dir' search the directory in a linear
- fashion and if its not found move up 1 level and search this dir
- etc.
-
- [ I would like the assembler to look for a directory called syms
- that the user could add his own constants/ symbols to. ]
-
- DIR
- save_regs #679b
- restore_regs #67d2
- stralloc #5b79
- ...
- END
-
- 4. How do the Library hash tables work? Is there a set of ML
- routines that manipulate hash tables?
-
- 5. This might be a silly question but I need to know. Does the 48
- hash names or does it just search in a linear fashion. { I just
- don't want to create a mess. }
-
-
- All ideas, thoughts and flammers are welcome.
- Also who is interested in such a tool.
-
- marc.hoffman@analog.com
- --
- -----------------------
- marc.hoffman@analog.com
-