diff --git a/hello.asm b/hello.asm new file mode 100644 index 0000000..a16e3fa --- /dev/null +++ b/hello.asm @@ -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"