From 7cfd87b6b492c87aa11af07d8d8e6c254e807db3 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Mon, 2 Mar 2020 11:57:43 +0000 Subject: [PATCH] Add normal hello world program for testing --- hello.asm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 hello.asm 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"