mirror of
https://github.com/Plexi09/Nadir-Kernel.git
synced 2026-10-20 15:07:27 +02:00
Initial commit
This commit is contained in:
commit
8b9c578e8f
4 changed files with 122 additions and 0 deletions
22
boot.asm
Normal file
22
boot.asm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
bits 16 ; 16 bit mode
|
||||
org 0x7c00
|
||||
|
||||
boot:
|
||||
mov si, message ; Point SI register to message
|
||||
mov ah, 0x0e ; Set higher bits to the display character command
|
||||
|
||||
.loop:
|
||||
lodsb ; Load the character within the AL register, and increment SI
|
||||
cmp al, 0 ; Is the AL register a null byte?
|
||||
je halt ; Jump to halt
|
||||
int 0x10 ; Trigger video service interrupt
|
||||
jmp .loop ; Loop again
|
||||
|
||||
halt:
|
||||
hlt ; stop
|
||||
|
||||
message:
|
||||
db "Hello, World ! From Nadir Kernel", 0x0a, 0x0d, 0x00
|
||||
|
||||
times 510-($-$$) db 0 ; 510 bytes of zeros
|
||||
dw 0xAA55 ; boot signature
|
||||
Loading…
Add table
Add a link
Reference in a new issue