minix/lib/i86/misc/io_insw.s
2009-11-09 10:26:00 +00:00

19 lines
347 B
ArmAsm

! 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