1. Assembler in Euphoria?
- Posted by Cameron Kaiser <spectre at WWW2.BUOY.COM> Aug 25, 1997
- 660 views
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! 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 --
2. Re: Assembler in Euphoria?
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Aug 26, 1997
- 615 views
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! 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>