[comp.os.msdos.programmer] Inline assembly language with MSC 5.x

add@sciences.sdsu.edu (James D. Murray) (08/29/90)

	Does MSC 5.x or 6.x support in-line assembly language?
I cannot find a pragma or command line switch to indicate that
it does.  Also, the string "asm" is not a reserved word under
MSC 5.x.

	If it does, how does one create the in-line code?

prk@planet.bt.co.uk (Peter Knight) (08/30/90)

add@sciences.sdsu.edu (James D. Murray) writes:


>	Does MSC 5.x or 6.x support in-line assembly language?
>I cannot find a pragma or command line switch to indicate that
>it does.  Also, the string "asm" is not a reserved word under
>MSC 5.x.

>	If it does, how does one create the in-line code?

I use MSC 5.1.  No, you cannot have inline assembly code in this
version.  To use assembly fragments, you have to put them into a
seperate function.  See the Mixed Language Programming Guide, for 
details.  To assemble them, you will need an assembler: MASM is 
supplied by Microsoft, but is showing its age.

Peter knight
BT Research

#include <std.disclaimer>

kdq@demott.COM (Kevin D. Quitt) (08/31/90)

add@sciences.sdsu.edu (James D. Murray) writes:
>
>
>	Does MSC 5.x or 6.x support in-line assembly language?
>I cannot find a pragma or command line switch to indicate that
>it does.  Also, the string "asm" is not a reserved word under
>MSC 5.x.
>
>	If it does, how does one create the in-line code?

    Not available in 5.1, but it is in 6.0, using #asm


-- 
 _
Kevin D. Quitt         demott!kdq   kdq@demott.com
DeMott Electronics Co. 14707 Keswick St.   Van Nuys, CA 91405-1266
VOICE (818) 988-4975   FAX (818) 997-1190  MODEM (818) 997-4496 PEP last

                96.37% of all statistics are made up.

david@gisatl.FIDONET.ORG (David Deitch) (09/01/90)

In a message of <Aug 29 02:17> James D. Murray (add@sciences.sdsu.edu ) writes:

 >         Does MSC 5.x or 6.x support in-line assembly language?
 > I cannot find a pragma or command line switch to indicate that
 > it does.  Also, the string "asm" is not a reserved word under
 > MSC 5.x.

     I am pretty sure the answer is no, but I have only been 
programming in MSC for a year now.  What I have done is use the Macro 
Assembler to create an object I linked with the C object.  The docs 
are pretty good at describing what you must do, and MASM 5.1 provides 
some macros that make it simple.

     David Deitch (GIS)
          deitch@gisatl.fidonet.org
               1:133/411@fidonet
 


--  
-----------------------------------------------------------------------------
David Deitch - via FidoNet node 1:133/411
UUCP: galbp!gisatl!david
INTERNET: david@gisatl.FIDONET.ORG

boerio@orchestra.ecn.purdue.edu (Jeff Boerio) (09/03/90)

In article <431.26DFC08C@gisatl.FIDONET.ORG> david@gisatl.FIDONET.ORG (David Deitch) writes:

>In a message of <Aug 29 02:17> James D. Murray (add@sciences.sdsu.edu ) writes:

> >         Does MSC 5.x or 6.x support in-line assembly language?
> > I cannot find a pragma or command line switch to indicate that
> > it does.  Also, the string "asm" is not a reserved word under
> > MSC 5.x.

MSC *does* feature in-line assembly code.  I haven't used it, but it works
something like:

main() { /* Start C source */
:
:
_asm{ /* Start asm code here */
	:
	:
} /* finish asm code here, continue with C stuff */
:
:
}

    - Jeff
--
Jeff Boerio (boerio@orchestra.ecn.purdue.edu)
Purdue University ECN Software Support Programmer
"Don't ask me, I'm just improvising" - Neil Peart, Rush
"There's someone in my head, but it's not me." - Pink Floyd