If you are talking about assembly code -- yes but it must be in-line assembly code. Here is an example C function with inline assembly.
int foo()
{
_asm
{
// put your assembly code here
}
}
>>you need MS Visual Studio to compile it
no you do not need Visual Studio. There are lots of free assemblers.
Ancient Dragon
Retired & Loving It
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342
if its c++ code use something like bloodhsed dev c++
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,820
Solved Threads: 600
First, this is not the right board to be discussing C and C++ topics. There are several tutorials , the topic is just too complicated to explain fully here.
You might be better off getting free masm assembler and use Notepad to write your programs. I hope you are studying an Intrudoction to Assembly book because you will definitely need it.
Ancient Dragon
Retired & Loving It
30,046 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,342