1 2 3 4 5 6 7 8 9 10 11 12 13
.global ioport_in .global ioport_out ioport_in: movl 4(%esp),%edx in %dx,%al ret ioport_out: movl 4(%esp),%edx movl 8(%esp),%eax outb %al,%dx ret