GCC Inline ASM
Posted: Wed Oct 23, 2002 10:15 am
Hi all,
I want to learn some basic inline assembler with gcc, I only need at the moment to learn really basic stuff, I already know things like asm("jmp _start") and asm("cli") and really really simple things like this, but now I need to know how to use variables in the code, like say I want to load the lidt register with a variable called idt_ptr or something, just simple input and output, nothing to complex, just something to get me by for now.
thanks.
I want to learn some basic inline assembler with gcc, I only need at the moment to learn really basic stuff, I already know things like asm("jmp _start") and asm("cli") and really really simple things like this, but now I need to know how to use variables in the code, like say I want to load the lidt register with a variable called idt_ptr or something, just simple input and output, nothing to complex, just something to get me by for now.
thanks.