This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Inline Assemby


Title: Inline Assemby

I am somewhat confused about how to embed inline assembly in a
gcc program. Below is my simple assembly instructions:

    in   al, E0h
    or   al, 01h
    out E0h, al

What is the syntax to insert my assembly instructions in gcc? I have
read the gcc manual and I have tried all sorts of iterations without succcess.

BTW, I have a requirement to port the assembly so I cannot convert it into C.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]