home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xibm.zip / AIX / aixPS2OS.s < prev    next >
Text File  |  1991-09-20  |  965b  |  64 lines

  1. /* $Id: aixPS2OS.s,v 1.1 1991/09/20 17:58:56 mtranle Exp $ */
  2.     .file    "io2.s"
  3.     .version    "01.01"
  4.     .text
  5.     .align    4
  6.     .def    inb;    .val    inb;    .scl    2;    .type    054;    .endef
  7.     .globl    inb
  8. inb:
  9.     pushl    %ebp
  10.     movl    %esp,%ebp
  11.     movl    8(%ebp),%edx
  12.     subl    %eax,%eax
  13.     inb    (%dx)
  14.     leave
  15.     ret
  16.  
  17. /ASMQ
  18. /ASMEND0
  19.     .def    inb;    .val    .;    .scl    -1;    .endef
  20.     .align    4
  21.     .def    outb;    .val    outb;    .scl    2;    .type    054;    .endef
  22.     .globl    outb
  23. outb:
  24.     pushl    %ebp
  25.     movl    %esp,%ebp
  26.     movl    8(%ebp),%edx
  27.     movl    12(%ebp),%eax
  28.     outb    (%dx)
  29.     leave
  30.     ret
  31.  
  32. /ASMQ
  33. /ASMEND1
  34.     .def    outb;    .val    .;    .scl    -1;    .endef
  35.     .align    4
  36.     .def    inw;    .val    inw;    .scl    2;    .type    055;    .endef
  37.     .globl    inw
  38. inw:
  39.     pushl    %ebp
  40.     movl    %esp,%ebp
  41.     movl    8(%ebp),%edx
  42.     subl    %eax,%eax
  43.     inw    (%dx)
  44.     leave
  45.     ret
  46. /ASMQ
  47. /ASMEND2
  48.     .def    inw;    .val    .;    .scl    -1;    .endef
  49.     .align    4
  50.     .def    outw;    .val    outw;    .scl    2;    .type    055;    .endef
  51.     .globl    outw
  52. outw:
  53.     pushl    %ebp
  54.     movl    %esp,%ebp
  55.     movl    8(%ebp),%edx
  56.     movl    12(%ebp),%eax
  57.     outw    (%dx)
  58.     leave
  59.     ret
  60.  
  61. /ASMQ
  62. /ASMEND3
  63.     .def    outw;    .val    .;    .scl    -1;    .endef
  64.