3 static inline unsigned char inb(const unsigned short port)
7 __asm__ __volatile__ ("inb %w1, %0" : "=a"(val) : "dN"(port));
12 static inline void outb(const unsigned short port, const unsigned char val)
14 int k = val; /* just here to test the b modifier in %b0 */
15 __asm__ __volatile__ ("outb %b0, %1" : : "a"(k), "dN"(port));
18 static void sincostest(double arg)
22 __asm__ ("fsincos" : "=t"(cos), "=u"(sin) : "0" (arg));
23 printf("Arg: %f Sin: %f Cos: %f\n", arg, sin, cos);
26 static inline int mov(int val)
30 __asm__ ("movl %0, %1" : "=r"(res) : "ri" (val));