minix/lib/libc/arch/i386/misc/io_outw.S
2010-03-03 14:27:30 +00:00

14 lines
285 B
ArmAsm

/* outw() - Output one word Author: Kees J. Bot */
/* 18 Mar 1996 */
/* void outw(U16_t port, U16_t value); */
.text
.globl _outw
_outw:
push %ebp
movl %esp, %ebp
movl 8(%ebp), %edx /* port */
movl 8+4(%ebp), %eax /* value */
outw %dx /* output 1 word */
pop %ebp
ret