summaryrefslogtreecommitdiff
path: root/io.asm
blob: e75664e7dd96cd27c567b651ad288de444835cb5 (plain) (blame)
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