3 #include "routix/system.h"
6 unsigned char inportb(word puerto
)
10 __asm__
__volatile__("inb %w1,%b0" : "=a" (valor
) : "d" (puerto
) );
14 void outportb (word puerto
, unsigned char dato
)
16 __asm__
__volatile__("outb %b0,%w1" : : "a" (dato
), "d" (puerto
) );
21 unsigned char inportb_p(word puerto
)
25 __asm__
__volatile__("inb %w1,%b0\n\tnop" : "=a" (valor
) : "d" (puerto
) );
29 void outportb_p (word puerto
, unsigned char dato
)
31 __asm__
__volatile__("outb %b0,%w1\n\tnop" : : "a" (dato
), "d" (puerto
) );