minix/lib/i86/misc/io_outsw.s
2005-04-21 14:53:53 +00:00

20 lines
353 B
ArmAsm
Executable file

! outsw() - Output a word array Author: Kees J. Bot
! 18 Mar 1996
! void outsw(U16_t port, void *buf, size_t count);
.sect .text
.define _outsw
_outsw:
push bp
mov bp, sp
cld
push si
mov dx, 4(bp) ! port
mov si, 6(bp) ! buf
mov cx, 8(bp) ! byte count
shr cx, #1 ! word count
rep outs ! output many words
pop si
pop bp
ret