I need get the asm function to "c" code...
I've got in asm code:
section.text
mov ah, 0x09
mov dx, pause
int 0x21
mov ah, 0x01
int 0x21
section.data
pause db "For continue press any key...",'$'
and i need make from this, function to C e.g.:
int main(void)
{
wait();
return 0;
}
where "wait" is the "function" from asm
What muss i append to asm and C code???
I use the nasm and MinGW compiler...
How can i link it???