Re: Assembly routines
- Posted by Mike Burrell <Mike.Burrell at GEOCITIES.COM> Apr 12, 1997
- 862 views
> 1. When using an assembly routine in Euphoria, is it interpreted like the > rest of the program, or does Euphoria actually release control to the > assembly function? i believe it hands control over to the assembly code > 2. Euphoria uses protected mode (I think). Is an assembly routine in a > Euphoria program also run in protected mode, or is the computer switched to > real mode before the assembly is run, and switched back to protected mode > when the assembly returns? nope it's in protected mode > 3. Is it possible to pass data back and forth between an assembly function > and the Euphoria program? the only way i could think of doing that is by doing something like this: -- start assembly code ; let's say some function value is stored in register ax mov dx, 0500h ; just as an example out dx,ax ; poke ax into #500 ret -- end assembly code var = peek(#500) i think that'd work... wewp . o O Mike Burrell O o . . o O http://www.geocities.com/SoHo/9036 O o . . o O burrellm at geocities.com O o .