Commit Diff


commit - 9f536acb2c2363ec2e03353de8fda3657b6001ea
commit + b8971940d603d9f699f4df57e377391e0c1cd52c
blob - 87744fc81b0c84ffb2937226cfd90dc1fd2f44b7
blob + b42ac4bb378bf4a72d4038bddbcb3eea1b851edb
--- sys/kernel.asm
+++ sys/kernel.asm
@@ -1,20 +1,7 @@
 [cpu 286]
 [bits 16]
 
-%macro io_wait 0
-out 0x80, al
-%endm
-
-%macro outb 2
-mov dx, %1
-mov al, %2
-out dx, al
-%endm
-
-%macro outb_slow 2
-outb %1, %2
-io_wait
-%endm
+%include "macros.inc"
 
 section .text
 global _entry
blob - /dev/null
blob + a186900d0b1c55f5be6703a6a66be99f8a0ec423 (mode 644)
--- /dev/null
+++ sys/macros.inc
@@ -0,0 +1,15 @@
+%macro io_wait 0
+out 0x80, al
+%endm
+
+%macro outb 2
+mov dx, %1
+mov al, %2
+out dx, al
+%endm
+
+%macro outb_slow 2
+outb %1, %2
+io_wait
+%endm
+