pull/10/head
E. Almqvist 4 years ago
parent b5d9cf5c89
commit cccdb7db83
  1. 14
      src/bootloader.asm
  2. 2
      src/elib/convert.asm

@ -1,17 +1,17 @@
[org 0x7c00] ; bootsector [org 0x7c00] ; bootsector
mov bx, welcomeString ; Print the welcome string mov bx, welcome_string ; Print the welcome string
call println call println
mov bx, infoString ; Print version info mov bx, info_string ; Print version info
call println call println
mov bx, hexTestPrefixString ; Hex print test (not needed but fun) mov bx, hex_test_string ; Hex print test (not needed but fun)
call print call print
pusha pusha
mov dx, 0x002e ; test the conversion mov dx, 0x002e ; test the conversion
call hexToASCII call hex_to_ascii
call println call println
popa popa
@ -25,9 +25,9 @@
%include "elib/io.asm" %include "elib/io.asm"
%include "elib/convert.asm" %include "elib/convert.asm"
welcomeString: db "Welcome to: e Operating-System (eOS)", ASCII_END welcome_string: db "e Operating-System (eOS)", ASCII_END
infoString: db "Version 2021 0.0", ASCII_END info_string: db "Version 2021 0.0", ASCII_END
hexTestPrefixString: db "Hex printing test: ", ASCII_END hex_test_string: db "Hex printing test: ", ASCII_END
times 510-($-$$) db 0 times 510-($-$$) db 0
db 0x55, 0xaa ; magic BIOS numbers db 0x55, 0xaa ; magic BIOS numbers

@ -5,7 +5,7 @@ HEX_OUT: db "0x0000", ASCII_END
; since it fills the register with the desired ; since it fills the register with the desired
; pointer toward the string. ; pointer toward the string.
hexToASCII: hex_to_ascii:
mov cx, 0 ; incrementor mov cx, 0 ; incrementor
hexloop: hexloop:

Loading…
Cancel
Save