mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
If you want to build the assembly version, run the buildAsm.sh script Currently just setting up the bootloader.
33 lines
363 B
NASM
33 lines
363 B
NASM
[bits 16]
|
|
|
|
start:
|
|
pusha
|
|
|
|
mov si, msg
|
|
call print
|
|
|
|
xor ax, ax
|
|
int 0x16
|
|
|
|
mov dl, ah
|
|
call printHexByte
|
|
|
|
xor ax, ax
|
|
int 0x16
|
|
|
|
popa
|
|
.return:
|
|
mov ax, 0x2000
|
|
mov ds, ax
|
|
mov es, ax
|
|
mov fs, ax
|
|
mov gs, ax
|
|
|
|
jmp 0x2000:0x0000
|
|
|
|
%include "./src/lib/print.asm"
|
|
|
|
msg: db "Hello!", ENDL, 0
|
|
|
|
times 512-($-$$) db 0
|