. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / lib / i86 / misc / io_inb.s
blob7a213faeb5a28cf784fab278d3b615f35492e35c
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 bp
9 mov bp, sp
10 mov dx, 4(bp) ! port
11 inb dx ! read 1 byte
12 xorb ah, ah
13 pop bp
14 ret