summaryrefslogtreecommitdiffstats
path: root/kernel/src/io.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--kernel/src/io.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/src/io.rs b/kernel/src/io.rs
new file mode 100644
index 0000000..b6b4cc7
--- /dev/null
+++ b/kernel/src/io.rs
@@ -0,0 +1,7 @@
+pub fn out8(address: u16, value: u8) {
+ unsafe {
+ asm!(
+ "out dx, al", in("dx") address, in("al") value
+ )
+ }
+} \ No newline at end of file
Go back to lisible.xyz