1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
section .text global inb global outb inb: mov edx, [esp + 4] in al, dx ret outb: mov al, [esp + 8] mov edx, [esp + 4] out dx, al ret