diff options
| author | kotorifan <kotorifan05@gmail.com> | 2026-03-08 16:37:02 +0100 |
|---|---|---|
| committer | kotorifan <kotorifan05@gmail.com> | 2026-03-08 16:37:02 +0100 |
| commit | 8b00afe1b255682cf8c219ab44a3d9fc590cc003 (patch) | |
| tree | 8584052a79557f9ccb0c1b77d70203addccbf6bb /src/common/common.protmode.clear.asm | |
| parent | ceedd4f2c7e990162f1b619f0d60471eea3aed1f (diff) | |
| download | kotori-os-8b00afe1b255682cf8c219ab44a3d9fc590cc003.tar.gz | |
Clear message at bootup without extra ascii characters
Diffstat (limited to 'src/common/common.protmode.clear.asm')
| -rw-r--r-- | src/common/common.protmode.clear.asm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/common.protmode.clear.asm b/src/common/common.protmode.clear.asm index 47cb980..8d26e2f 100644 --- a/src/common/common.protmode.clear.asm +++ b/src/common/common.protmode.clear.asm @@ -1,13 +1,18 @@ ;; common.protmode.print.asm +%ifndef COMMON_PROTMODE_CLEAR_ASM +%define COMMON_PROTMODE_CLEAR_ASM + %include "common.asm" _clear_screen: mov edi, VGA_BUFFER mov ecx, VGA_SCREEN - mov ax, VGA_WHITE_ON_BLACK + mov ax, 0x0f20 ; Empty char with white on black .clear: - mov [edi], eax + mov [edi], ax add edi, 2 loop .clear ret + +%endif |
