home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / lib / src / outp.asm < prev   
Encoding:
Assembly Source File  |  1997-08-17  |  589 b   |  45 lines

  1.     .text
  2.     .file "outp.asm"
  3.     .globl    __outp
  4. __outp:
  5.     xor    %eax,%eax
  6.     movw    4(%esp),%dx
  7.     movb    8(%esp),%al
  8.     out    %al,%dx
  9.     ret
  10.     .align    2
  11.     .globl    __outpw
  12. __outpw:
  13.     xor    %eax,%eax
  14.     movw    4(%esp),%dx
  15.     movw    8(%esp),%ax
  16.     out    %ax,%dx
  17.     ret
  18.     .align    2
  19.     .globl    __outpd
  20. __outpd:
  21.     movw    4(%esp),%dx
  22.     movl    8(%esp),%eax
  23.     out    %eax,%dx
  24.     ret
  25.     .align    2
  26.     .globl    __inp
  27. __inp:
  28.     xor    %eax,%eax
  29.     movw    %dx,4(%esp)
  30.     in    %dx,%al
  31.     ret
  32.     .align    2
  33.     .globl    __inpw
  34. __inpw:
  35.     xor    %eax,%eax
  36.     movw    %dx,4(%esp)
  37.     in    %dx,%ax
  38.     ret
  39.     .align    2
  40.     .globl    __inpd
  41. __inpd:
  42.     movw    %dx,4(%esp)
  43.     in    %dx,%eax
  44.     ret
  45.