xref: /minix3/minix/kernel/arch/i386/io_outb.S (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc/*	outb() - Output one byte			Author: Kees J. Bot */
2*433d6423SLionel Sambuc/*								18 Mar 1996 */
3*433d6423SLionel Sambuc/*	void outb(U16_t port, U8_t value); */
4*433d6423SLionel Sambuc#include <machine/asm.h>
5*433d6423SLionel Sambuc
6*433d6423SLionel SambucENTRY(outb)
7*433d6423SLionel Sambuc	push	%ebp
8*433d6423SLionel Sambuc	movl	%esp, %ebp
9*433d6423SLionel Sambuc	movl	8(%ebp), %edx	/* port */
10*433d6423SLionel Sambuc	movl	8+4(%ebp), %eax	/* value */
11*433d6423SLionel Sambuc	outb	%dx	/* output 1 byte */
12*433d6423SLionel Sambuc	pop	%ebp
13*433d6423SLionel Sambuc	ret
14