adding assembly code into c code

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

twinkleBell

Thread Starter
Joined
Jun 12, 2003
Messages
36
hi...

i heard that its possible to add part of assembly code into a c program.

anyone knows how to go abt doing it?
 
Joined
Aug 4, 2003
Messages
13
I think it may depend on what compiler or link library you are using, but when I need to put assembly for a micro into C code, it goes:
#pragmaASM
assembly code
...
...
#pragma ENDASM
The micro is the M16C/60 series.
For the 68HC11:
asm
{
assembly code
...
...
}
It might say your embedded manual or in your compiler help file....not sure.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top