summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-10-10 00:34:00 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2016-10-10 00:34:00 -0400
commite1920318e390a14814def8f6b082c6d512f87182 (patch)
tree58006fab00c538abaee79467f3cc2481027d832d
parentedbec1a22c3869099f073434bbaf88ce53d3c91b (diff)
downloadkernel-fun-e1920318e390a14814def8f6b082c6d512f87182.tar.gz
Rename pio_ to more realistic names
-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