minix/lib/i86/misc/io_outsw.s

20 lines
353 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
! 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