User forums > Using Code::Blocks

Can RC1 handle inline assembly yet?

<< < (4/4)

tiwag:

--- Quote from: grv575 on August 08, 2005, 07:50:10 am ---FWIW, the following compiles under CB set to VC++ toolkit:

--- End quote ---

Hi grv

using the [code ] somecode [/code ]  tags it looks better !


--- Code: ---#include <iostream>

int main()
{
    int a;
    __asm
    {
        xor eax,eax
        mov a, 5
    }
    printf("%d\n", a);
        return 0;
}
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version