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

19 lines
353 B
ArmAsm

! 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