source:
trunk/minix/lib/i386/misc/io_insb.s@
10
Last change on this file since 10 was 9, checked in by , 14 years ago | |
---|---|
File size: 335 bytes |
Line | |
---|---|
1 | ! insb() - Input a byte array Author: Kees J. Bot |
2 | ! 18 Mar 1996 |
3 | ! void insb(U16_t port, void *buf, size_t count); |
4 | |
5 | .sect .text |
6 | .define _insb |
7 | _insb: |
8 | push ebp |
9 | mov ebp, esp |
10 | cld |
11 | push edi |
12 | mov edx, 8(ebp) ! port |
13 | mov edi, 12(ebp) ! buf |
14 | mov ecx, 16(ebp) ! byte count |
15 | rep insb ! input many bytes |
16 | pop edi |
17 | pop ebp |
18 | ret |
Note:
See TracBrowser
for help on using the repository browser.