A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eOS/src/bootloader.asm

26 lines
484 B

[org 0x7c00] ; bootsector
3 years ago
; Print the welcome string
mov bx, welcome_string
call println
4 years ago
3 years ago
; Read second sector
jmp $ ; inf loop
4 years ago
%include "equ/ASCII.asm"
%include "bios.asm"
4 years ago
3 years ago
; Data
welcome_string: db "e Operating-System (eOS)", ASCII_CARRIAGE_RETURN, ASCII_LINEBREAK, "Version 2021 0.0", ASCII_END
read_test_string: db "Read bytes: ", ASCII_END
3 years ago
; Bootsector
times 510-($-$$) db 0
3 years ago
dw 0xaa55 ; magic BIOS numbers
4 years ago
3 years ago
; After bootsector
4 years ago
times 256 dw 0xEEEE
times 256 dw 0xAAAA