luki1997a
Active member
Hello:hello:
I've started my adventures with C coding:lol: I'm going to make a simple and easy kernel. I'm using DevC++ and I've got a problem described in title.
Code:
Problem happes at coloured line. Any suggestions? I'm new to C.
I've started my adventures with C coding:lol: I'm going to make a simple and easy kernel. I'm using DevC++ and I've got a problem described in title.
Code:
Code:
unsigned char inportb (unsigned short _port)
{
unsigned char rv;
[COLOR="DarkOrange"] __asm__ __volatile__ ("inb %1, %0" : "=a" (rv) : "dN" (_port));[/COLOR]
return rv;
}
void outportb (unsigned short _port, unsigned char _data)
{
__asm__ __volatile__ ("outb %1, %0" : : "dN" (_port), "a" (_data));
}
Problem happes at coloured line. Any suggestions? I'm new to C.