|
|
@ -3,32 +3,28 @@ |
|
|
|
mov bx, welcomeString ; Print the welcome string |
|
|
|
mov bx, welcomeString ; Print the welcome string |
|
|
|
call println |
|
|
|
call println |
|
|
|
|
|
|
|
|
|
|
|
mov bx, infoString |
|
|
|
mov bx, infoString ; Print version info |
|
|
|
call println |
|
|
|
call println |
|
|
|
|
|
|
|
|
|
|
|
mov bx, hexTestPrefixString |
|
|
|
mov bx, hexTestPrefixString ; Hex print test (not needed but fun) |
|
|
|
call print |
|
|
|
call print |
|
|
|
|
|
|
|
|
|
|
|
mov dx, 0x002e ; test the conversion |
|
|
|
mov dx, 0x002e ; test the conversion |
|
|
|
call hexToASCII |
|
|
|
call hexToASCII |
|
|
|
call println |
|
|
|
call println |
|
|
|
|
|
|
|
|
|
|
|
jmp $ ; inf loop |
|
|
|
jmp $ ; inf loop |
|
|
|
|
|
|
|
|
|
|
|
;; includes |
|
|
|
; Load the EQUs |
|
|
|
; EQU |
|
|
|
|
|
|
|
%include "equ/BIOS.asm" |
|
|
|
%include "equ/BIOS.asm" |
|
|
|
%include "equ/ASCII.asm" |
|
|
|
%include "equ/ASCII.asm" |
|
|
|
|
|
|
|
|
|
|
|
; eLIB |
|
|
|
; SRs |
|
|
|
%include "elib/io.asm" |
|
|
|
%include "elib/io.asm" |
|
|
|
%include "elib/convert.asm" |
|
|
|
%include "elib/convert.asm" |
|
|
|
|
|
|
|
|
|
|
|
;; Data |
|
|
|
|
|
|
|
welcomeString: db "Welcome to: e Operating-System (eOS)", ASCII_END |
|
|
|
welcomeString: db "Welcome to: e Operating-System (eOS)", ASCII_END |
|
|
|
infoString: db "Version 2021 0.0", ASCII_END |
|
|
|
infoString: db "Version 2021 0.0", ASCII_END |
|
|
|
hexTestPrefixString: db "Hex printing test: ", ASCII_END |
|
|
|
hexTestPrefixString: db "Hex printing test: ", ASCII_END |
|
|
|
|
|
|
|
|
|
|
|
; Magic BIOS number |
|
|
|
|
|
|
|
times 510-($-$$) db 0 |
|
|
|
times 510-($-$$) db 0 |
|
|
|
db 0x55, 0xaa |
|
|
|
db 0x55, 0xaa ; magic BIOS numbers |
|
|
|