1 /* $XConsortium: inout.s /main/6 1996/02/21 17:53:35 kaleb $ */
7 /* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/shared/inout.S,v 1.1 1999/07/10 07:24:52 dawes Exp $ */
12 * Make i80386 io primitives available at C-level.
20 *-----------------------------------------------------------------------
26 *-----------------------------------------------------------------------
30 MOV_L (REGOFF(4,ESP),EDX)
36 *-----------------------------------------------------------------------
42 *-----------------------------------------------------------------------
46 MOV_L (REGOFF(4,sp),EDX)
47 MOV_L (REGOFF(8,sp),EAX)
51 *-----------------------------------------------------------------------
53 * Input one 16-bit word.
57 *-----------------------------------------------------------------------
61 MOV_L (REGOFF(4,ESP),EDX)
66 *-----------------------------------------------------------------------
68 * Output one 16-bit word.
72 *-----------------------------------------------------------------------
76 MOV_L (REGOFF(4,ESP),EDX)
77 MOV_L (REGOFF(8,ESP),EAX)
82 *-----------------------------------------------------------------------
84 * Input one 32-bit longword.
88 *-----------------------------------------------------------------------
92 MOV_L (REGOFF(4,ESP),EDX)
97 *-----------------------------------------------------------------------
99 * Output one 32-bit longword.
103 *-----------------------------------------------------------------------
107 MOV_L (REGOFF(4,ESP),EDX)
108 MOV_L (REGOFF(8,ESP),EAX)