source: trunk/minix/lib/i86/misc/io_insl.s@ 20

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

Minix 3.1.2a

File size: 375 bytes
Line 
1! insl() - Input a dword array Author: Kees J. Bot
2! 18 Mar 1996
3! void insl(U16_t port, void *buf, size_t count);
4
5 o32 = 0x66
6
7.sect .text
8.define _insl
9_insl:
10 push bp
11 mov bp, sp
12 cld
13 push di
14 mov dx, 4(bp) ! port
15 mov di, 6(bp) ! buf
16 mov cx, 8(bp) ! byte count
17 shr cx, #2 ! dword count
18 .data1 o32
19 rep ins ! input many dwords
20 pop di
21 pop bp
22 ret
Note: See TracBrowser for help on using the repository browser.