aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/common.protmode.clear.asm
diff options
context:
space:
mode:
authorkotorifan <kotorifan05@gmail.com>2026-03-08 15:33:02 +0100
committerkotorifan <kotorifan05@gmail.com>2026-03-08 15:33:02 +0100
commitceedd4f2c7e990162f1b619f0d60471eea3aed1f (patch)
tree640ffbfcb9428624b6386d45d28db35d9ccac756 /src/common/common.protmode.clear.asm
parentf81dee10ef19f0c82eb89d0e528bcbfb7a38b016 (diff)
downloadkotori-os-ceedd4f2c7e990162f1b619f0d60471eea3aed1f.tar.gz
Made a common directory, moved the protmode print there
Diffstat (limited to 'src/common/common.protmode.clear.asm')
-rw-r--r--src/common/common.protmode.clear.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/common.protmode.clear.asm b/src/common/common.protmode.clear.asm
new file mode 100644
index 0000000..47cb980
--- /dev/null
+++ b/src/common/common.protmode.clear.asm
@@ -0,0 +1,13 @@
+;; common.protmode.print.asm
+
+%include "common.asm"
+
+_clear_screen:
+ mov edi, VGA_BUFFER
+ mov ecx, VGA_SCREEN
+ mov ax, VGA_WHITE_ON_BLACK
+.clear:
+ mov [edi], eax
+ add edi, 2
+ loop .clear
+ ret