source:
trunk/minix/lib/i86/misc/io_outw.s@
10
| Last change on this file since 10 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 251 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | ! outw() - Output one word Author: Kees J. Bot |
| 2 | ! 18 Mar 1996 | |
| 3 | ! void outw(U16_t port, U16_t value); | |
| 4 | ||
| 5 | .sect .text | |
| 6 | .define _outw | |
| 7 | _outw: | |
| 8 | push bp | |
| 9 | mov bp, sp | |
| 10 | mov dx, 4(bp) ! port | |
| 11 | mov ax, 4+2(bp) ! value | |
| 12 | out dx ! output 1 word | |
| 13 | pop bp | |
| 14 | ret |
Note:
See TracBrowser
for help on using the repository browser.