I am sorry if this has already been asked but my searches yielded no good results. So now for my first question here!!!
I am developing under Linux using gcc, nasm and ld
I would like to know how to mix NASM with C. Can someone point me to a tutorial for this? or just lay it out for me in a reply? (either is ok)
Example of what I am trying to do:
Code: Select all
; File: Readchr.asm
global rdchr
rdchr:
mov eax, 0x01
...
ret
Code: Select all
; File: Main.c
extern void rdchr;
int main()
{
rdchr();
}
Thanks in advance for the any help.