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
removed some verbose messages
[minix3.git]
/
lib
/
i86
/
misc
/
io_insw.s
blob
a4e5851789f754e3003d3c8f8319a9b93b2563d2
1
!
insw
() -
Input
a
word array Author
:
Kees J. Bot
2
!
18
Mar
1996
3
!
void insw
(
U16_t port
,
void
*
buf
,
size_t count
)
;
4
5
.sect .text
6
.define _insw
7
_insw
:
8
push bp
9
mov bp
,
sp
10
cld
11
push di
12
mov dx
,
4
(
bp
) !
port
13
mov di
,
6
(
bp
) !
buf
14
mov cx
,
8
(
bp
) !
byte count
15
shr cx
,
#1 ! word count
16
rep ins
!
input many words
17
pop di
18
pop bp
19
ret