Hi!
There are several ways to implement assembler in GCC (Dev-C++).
1: learn AT&T assembler
2: use Intel to AT&T converter
3: use external assembler linker, that produces gcc compatible
object files and then in your C source declare "external asm_foo()" and
in linking time, add asm_foo.o in to the process
I'd prefer third one, but I must seek out an assembler compiler, that
takes Intel code and produces gcc compatible object files. I think it
would be nasm [further investigation required].
A.
>
> Hi all
>
> I have just changed Visual C++ to great DEV-C++, and I have small
> problem.
> When I wanted to join assembler code to my CPP file I must type:
>
> __asm
> {
> mov 0x077, dx
> in al, dx
> and al, 0xE0
> }
>
> How can I do the same in DEV-C++?
>
> Thanks for help
>
> Marcin Kacperek
|