minix/lib/i86/misc/io_insw.s

20 lines
347 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
! insw() - Input a word array Author: Kees J. Bot
! 18 Mar 1996
! void insw(U16_t port, void *buf, size_t count);
.sect .text
.define _insw
_insw:
push bp
mov bp, sp
cld
push di
mov dx, 4(bp) ! port
mov di, 6(bp) ! buf
mov cx, 8(bp) ! byte count
shr cx, #1 ! word count
rep ins ! input many words
pop di
pop bp
ret