Support for new Operating System

This commit is contained in:
Travor Liu
2018-03-09 10:56:13 -05:00
parent a46970f070
commit 6b4a5039a6

22
a/assembler_bootsect.asm Normal file
View File

@@ -0,0 +1,22 @@
[ORG 0x7C00]
mov si,HelloWorld
call print_string
jmp $
HelloWorld db "Hello world!",0xD,0xA,0
print_string:
mov ah,0xE
.repeat:
lodsb
cmp al,0
je .done
int 0x10
jmp .repeat
.done:
ret
times 510-($-$$) db 0
dw 0xAA55