summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io.asm24
1 files changed, 7 insertions, 17 deletions
diff --git a/io.asm b/io.asm
index fd45e99..e75664e 100644
--- a/io.asm
+++ b/io.asm
@@ -1,25 +1,15 @@
section .text
-global pio_read
-global pio_write
+global inb
+global outb
-pio_read:
- push ebp
- mov ebp, esp
-
- mov edx, [esp + 8]
+inb:
+ mov edx, [esp + 4]
in al, dx
-
- leave
ret
-pio_write:
- push ebp
- mov ebp, esp
-
- mov edx, [esp + 8]
- mov al, [esp + 12]
+outb:
+ mov al, [esp + 8]
+ mov edx, [esp + 4]
out dx, al
-
- leave
ret