minix/lib/libc/arch/i386/misc/io_insw.s

20 lines
362 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 ebp
mov ebp, esp
cld
push edi
mov edx, 8(ebp) ! port
mov edi, 12(ebp) ! buf
mov ecx, 16(ebp) ! byte count
shr ecx, 1 ! word count
rep o16 ins ! input many words
pop edi
pop ebp
ret