Initial commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user