diff --git a/src/bootloader.asm b/src/bootloader.asm index 101bd51..b20de8a 100644 --- a/src/bootloader.asm +++ b/src/bootloader.asm @@ -1,17 +1,17 @@ [org 0x7c00] ; bootsector - mov bx, welcomeString ; Print the welcome string + mov bx, welcome_string ; Print the welcome string call println - mov bx, infoString ; Print version info + mov bx, info_string ; Print version info 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 pusha mov dx, 0x002e ; test the conversion - call hexToASCII + call hex_to_ascii call println popa @@ -25,9 +25,9 @@ %include "elib/io.asm" %include "elib/convert.asm" -welcomeString: db "Welcome to: e Operating-System (eOS)", ASCII_END -infoString: db "Version 2021 0.0", ASCII_END -hexTestPrefixString: db "Hex printing test: ", ASCII_END +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 diff --git a/src/elib/convert.asm b/src/elib/convert.asm index 72489d8..50643d0 100644 --- a/src/elib/convert.asm +++ b/src/elib/convert.asm @@ -5,7 +5,7 @@ HEX_OUT: db "0x0000", ASCII_END ; since it fills the register with the desired ; pointer toward the string. -hexToASCII: +hex_to_ascii: mov cx, 0 ; incrementor hexloop: