source: trunk/minix/lib/i86/misc/io_inb.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: 223 bytes
Line 
1! inb() - Input one byte Author: Kees J. Bot
2! 18 Mar 1996
3! unsigned inb(U16_t port);
4
5.sect .text
6.define _inb
7_inb:
8 push bp
9 mov bp, sp
10 mov dx, 4(bp) ! port
11 inb dx ! read 1 byte
12 xorb ah, ah
13 pop bp
14 ret
Note: See TracBrowser for help on using the repository browser.