move benchmarks to their own dir.
[minix.git] / lib / i386 / misc / io_inb.s
blobab59d7310cb0b0a0ca3e93f70c4989da51fc736b
1 ! inb() - Input one byte Author: Kees J. Bot
2 ! 18 Mar 1996
3 ! unsigned inb(U16_t port);
5 .sect .text
6 .define _inb
7 _inb:
8 push ebp
9 mov ebp, esp
10 mov edx, 8(ebp) ! port
11 xor eax, eax
12 inb dx ! read 1 byte
13 pop ebp
14 ret