A small script that simply prints a given string. It's an improved snippet that combines some recommendations given in my post on string helper functions.
org 100h
mov si, hello
call puts
ret
puts:
jmp .run
.putc:
mov ah, 0Eh
mov bx, 7
int 10h
.run:
lodsb
cmp al, 0
jne .putc
ret
hello db "Hello World!", 0