summaryrefslogtreecommitdiff
path: root/src/kernel/stub.asm
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-25 13:53:18 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-25 13:53:18 -0500
commit2c542b87ff3dc2eacc036dc296a81f8fc215e6d9 (patch)
tree0dc1f733b33c45121b806343f7d00bbda03aced8 /src/kernel/stub.asm
parent2b7b69e1ffd00aefa60d73a5af3bacc1c803a930 (diff)
downloadportland-os-2c542b87ff3dc2eacc036dc296a81f8fc215e6d9.tar.gz
some more, tag part doesn't work
Diffstat (limited to 'src/kernel/stub.asm')
-rw-r--r--src/kernel/stub.asm14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/kernel/stub.asm b/src/kernel/stub.asm
index 2c097d3..84e4523 100644
--- a/src/kernel/stub.asm
+++ b/src/kernel/stub.asm
@@ -34,13 +34,14 @@ mb_end:
section .text
bits 32
+global _start
_start:
mov dword [info_pointer], ebx
mov esp, stack
call main
mov edx, eax
- mov eax, 0x20f0_20f0
+ mov eax, 0x4720_4720
mov ebx, 0x000b_8000
mov ecx, 0x000b_8fa0
clear_screen_loop:
@@ -49,11 +50,12 @@ clear_screen_loop:
test ebx, ecx
jne clear_screen_loop
- mov dword [0x000b_8000], 0xf072_f045
- mov dword [0x000b_8004], 0xf06f_f072
- mov dword [0x000b_8008], 0xf020_f072
+ mov dword [0x000b_8000], 0x4772_4745
+ mov dword [0x000b_8004], 0x476f_4772
+ mov dword [0x000b_8008], 0x4720_4772
- mov ebx, 0x000b_8022
+ mov ebx, 0x000b_8020
+ mov ecx, 0x000b_800a
error_number_loop:
mov al, dl
and al, 0x07
@@ -61,7 +63,7 @@ error_number_loop:
mov byte [ebx], al
sub ebx, 2
shr edx, 3
- test ebx, 0x000b_800a
+ test ebx, ecx
jne error_number_loop
cli