1. Assembler in Euphoria?

Does (will) Euphoria have an assembler in it? It would make porting code
so much easier, since I don't know In-smell opcodes by heart! smile Something
like the Watcom C #pragma aux would be nice, since I deal in a lot of
Watcom stuff, e.g.

#pragma aux ... =\
        'shl ... \
        parm [EAX], [EBX];

or some such. It would be a big help!

--
Cameron Kaiser
http://www.sserv.com/
spectre at sserv.com
--

new topic     » topic index » view message » categorize

2. Re: Assembler in Euphoria?

Cameron Kaiser wrote:
>
> Does (will) Euphoria have an assembler in it? It would make porting code
> so much easier, since I don't know In-smell opcodes by heart! smile Something
> like the Watcom C #pragma aux would be nice, since I deal in a lot of
> Watcom stuff, e.g.
>
> #pragma aux ... =\
>         'shl ... \
>         parm [EAX], [EBX];
>
> or some such. It would be a big help!
>
> --
> Cameron Kaiser
> http://www.sserv.com/
> spectre at sserv.com
> --

I've been working on an include file that has functions that will
convert a sequence of assembly language text to a sequence of equivalent
machine codes.  This might be close to what you want.  These codes can
then be poked into memory and called from your Euphoria program.  It is
by no means complete, I have not even begun serious testing and mod r/m
instructions, sibs, memory addresses and code labels are not yet
implemented.  On the other hand, the instruction set is fairly
complete.  If anyone is interested in testing or playing around with my
code, I will upload it to

As always with assembly language programming, be extremely careful with
what you do.  My program has not been tested as I said before; I just
haven't had the time.  I don't even have any programs that show it off,
yet.  There's very little documentation in the .e file, enough I hope
that you can figure it out.

As for #pragma and all, I haven't the slightest idea what that means.
Explain further and I might be able to do something around that.

I'm very interested to see what the response to this will be.  Email me
with any comments or suggestions, please!

Pete Eberlein <xseal at harborside.com>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu