repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git]
/
lib
/
i86
/
misc
/
io_inb.s
blob
7a213faeb5a28cf784fab278d3b615f35492e35c
1
!
inb
() -
Input one byte Author
:
Kees J. Bot
2
!
18
Mar
1996
3
!
unsigned inb
(
U16_t port
)
;
4
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