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

34 lines
675 B

[org 0x7c00] ; bootsector
4 years ago
mov bx, welcome_string ; Print the welcome string
call println
4 years ago
4 years ago
mov bx, info_string ; Print version info
call println
4 years ago
4 years ago
mov bx, hex_test_string ; Hex print test (not needed but fun)
call print
4 years ago
pusha
mov dx, 0x002e ; test the conversion
4 years ago
call hex_to_ascii
call println
4 years ago
popa
jmp $ ; inf loop
4 years ago
; Load the EQUs
4 years ago
%include "equ/BIOS.asm"
%include "equ/ASCII.asm"
4 years ago
; SRs
4 years ago
%include "elib/io.asm"
%include "elib/convert.asm"
4 years ago
4 years ago
welcome_string: db "e Operating-System (eOS)", ASCII_END
info_string: db "Version 2021 0.0", ASCII_END
hex_test_string: db "Hex printing test: ", ASCII_END
times 510-($-$$) db 0
db 0x55, 0xaa ; magic BIOS numbers