SECTION .text global outw global inw outw: push ebp; mov ebp,esp mov dx, [ebp+8] ; port mov ax, [ebp+12] ; data out dx, ax mov esp,ebp pop ebp ret inw: push ebp; mov ebp,esp mov dx, [ebp+8] ; port in eax, dx mov esp,ebp pop ebp ret