[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [MiNT] Incorporating other calls into the
> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Guido Flohr
> Sent: Monday, June 28, 1999 10:32 AM
> To: MiNT mailing list
> Subject: Re: [MiNT] Incorporating other calls into the
>
>
> On Sun, Jun 27, 1999 at 11:38:12PM -0400, Lonny Pursell wrote:
> > >Anyway, if there is a chance for a conversion - good news for
> you - I have
> > >recently written a library converter. It should be possible to do the
> > >same for the format you need.
> >
> > i don't have this doc in text form it's in a book.
> > so i type it in:
> >
> > first 2 bytes are magic number FF65 (hex)
> > ...
>
> OK, and the object files. Let me guess:
>
> struct drexec {
> short a_magic; /* Always 0x601a. */
> ulong a_text; /* Size of text segment. */
> ulong a_data; /* Size of data segment. */
> ulong a_bss; /* Size of bss. */
> ulong a_syms; /* Size of the symbol table. */
> char reserved[10]; /* Always zero. */
> };
>
> What is the format of the symbol table? What is the name of the symbol
> index in the library archive? Could you please create a library from two
> really small (!) object files, plus the source both in C (Pascal, or
> whatever) and Assembler. I will be able to figure out the rest then.
>
> But you will have to be able to find a way to pass parameters on the
> stack, not in registers. Otherwise things won't work.
Any language on the Atari should be able to do that.
> Ciao
>
> Guido
>
> P.S.: Please make sure that in the object files you use both short symbol
> names and long ones. Is there any limit in the length of a symbol name?
The original format is restricted to 8 characters. Refer to the manual page
of my nm utility (http://www.muenster.de/~reschke/soft_e.html#progtool) for
some explanations about extended formats...