slmt9@cc.usu.edu (05/22/91)
Hello to all of the programmers out there. This is a plea for help. Is it possible to place assembly code inline in a C program like some of the sources from the fish disk do? If I remember right it looksd something like this: ##asm (Assembly statements) ##endasm This apparently works in Aztec C but not in my SAS v5.10a. I would appriciate any help that I can get. Thanks, Joshua SLMT9@cc.usu.edu
jdickson@jato.jpl.nasa.gov (Jeff Dickson) (05/24/91)
I have MANX Aztec C. Assembly code inside a function. Does the com-
piler take care of preserving the registers for you and then restoring them
when your done ? That is when the final brace is encountered.
For instance, if I had:
char *somefunc(somearg) long somearg; {
#ASM
****some assembly code****
#ENDASM
}
D0 will be returned, right?
-jeff
jay@deepthot.cary.nc.us (Jay Denebeim) (05/27/91)
In article <1991May22.094439.47864@cc.usu.edu> slmt9@cc.usu.edu writes: > > Hello to all of the programmers out there. This is a plea for help. > > Is it possible to place assembly code inline in a C program like some >of the sources from the fish disk do? If I remember right it looksd something >like this: > >##asm > (Assembly statements) >##endasm > > This apparently works in Aztec C but not in my SAS v5.10a. I would >appriciate any help that I can get. Don't do that. Its quite ugly. Instead just write some proceedures in assembly code if you need it. > > Thanks, > Joshua > SLMT9@cc.usu.edu -- |_o_o|\\ |. o.| || The Jay Denebeim | . | || Software | o | || Distillery | |// Address: UUCP: mcnc.org!deepthot.uucp!jay ====== Internet: jay@deepthot.cary.nc.us BBS:(919)-460-7430 VOICE:(919)-460-6934