Newer
Older
ubixos / Dump / hybos / lib / x86 / inportw.c
@cwolsen cwolsen on 31 Oct 2018 169 bytes Big Dump
unsigned short inportw(int port)
{
	register unsigned short r;

	__asm__ __volatile__
	(
		"inw %%dx, %%ax\n"
		: "=a" (r)
		: "d" (port)
	);

	return r;
}