source: trunk/minix/lib/i86/misc/io_outl.s@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 339 bytes
Line 
1! outl() - Output one dword Author: Kees J. Bot
2! 18 Mar 1996
3! void outl(U16_t port, u32_t value);
4
5 o32 = 0x66
6
7.sect .text
8.define _outl
9_outl:
10 push bp
11 mov bp, sp
12 pushf
13 cli ! eax is not interrupt safe
14 mov dx, 4(bp) ! port
15 .data1 o32
16 mov ax, 4+2(bp) ! value
17 .data1 o32
18 out dx ! output 1 dword
19 popf
20 pop bp
21 ret
Note: See TracBrowser for help on using the repository browser.