home *** CD-ROM | disk | FTP | other *** search
- .text
- .file "outp.asm"
- .globl __outp
- __outp:
- xor %eax,%eax
- movw 4(%esp),%dx
- movb 8(%esp),%al
- out %al,%dx
- ret
- .align 2
- .globl __outpw
- __outpw:
- xor %eax,%eax
- movw 4(%esp),%dx
- movw 8(%esp),%ax
- out %ax,%dx
- ret
- .align 2
- .globl __outpd
- __outpd:
- movw 4(%esp),%dx
- movl 8(%esp),%eax
- out %eax,%dx
- ret
- .align 2
- .globl __inp
- __inp:
- xor %eax,%eax
- movw %dx,4(%esp)
- in %dx,%al
- ret
- .align 2
- .globl __inpw
- __inpw:
- xor %eax,%eax
- movw %dx,4(%esp)
- in %dx,%ax
- ret
- .align 2
- .globl __inpd
- __inpd:
- movw %dx,4(%esp)
- in %dx,%eax
- ret
-