Merge pull request #446 from TravorLZH/master

Support for new Operating System [bare metal]
This commit is contained in:
Mike Donaghy
2018-03-18 04:54:51 -05:00
committed by GitHub

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