Initial commit

This commit is contained in:
2025-03-14 17:22:59 +03:00
commit d5b504e815
12 changed files with 589 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
bits 32
section .text
align 4
dd 0x1BADB002
dd 0x00
dd - (0x1BADB002+0x00)
global start
extern kmain ; this function is gonna be located in our c code(kernel.c)
start:
cli ;clears the interrupts
call kmain ;send processor to continue execution from the kamin funtion in c code
;;;;;;;;;;;DIVISION BY ZERO TEST
; mov ax, 10
; mov bx, 0
; div bx
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
hlt ; halt the cpu(pause it from executing from this address