source:
trunk/minix/lib/i386/misc/io_outb.s@
9
| Last change on this file since 9 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 259 bytes | |
| Line | |
|---|---|
| 1 | ! outb() - Output one byte Author: Kees J. Bot |
| 2 | ! 18 Mar 1996 |
| 3 | ! void outb(U16_t port, U8_t value); |
| 4 | |
| 5 | .sect .text |
| 6 | .define _outb |
| 7 | _outb: |
| 8 | push ebp |
| 9 | mov ebp, esp |
| 10 | mov edx, 8(ebp) ! port |
| 11 | mov eax, 8+4(ebp) ! value |
| 12 | outb dx ! output 1 byte |
| 13 | pop ebp |
| 14 | ret |
Note:
See TracBrowser
for help on using the repository browser.