minix/lib/i386/misc/io_insl.s
2005-04-21 14:53:53 +00:00

20 lines
364 B
ArmAsm
Executable file

! insl() - Input a dword array Author: Kees J. Bot
! 18 Mar 1996
! void insl(U16_t port, void *buf, size_t count);
.sect .text
.define _insl
_insl:
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, 2 ! dword count
rep ins ! input many dwords
pop edi
pop ebp
ret