Add normal hello world program for testing

This commit is contained in:
Nero 2020-03-02 11:57:43 +00:00
parent 0f833da221
commit 7cfd87b6b4
1 changed files with 20 additions and 0 deletions

20
hello.asm Normal file
View File

@ -0,0 +1,20 @@
org BASE
; COM program displaying hello world string
main:
mov si, string
mov ah, 0x0e
xor bx, bx
.loop:
lodsb
test al, al
jz .end
int 0x10
jmp .loop
.end:
ret
string:
db "Hello world!", 0x0A, 0x0D, 0
%include "bootsig.inc"