org 100h
jmp _main
print_screen:
mov ah, 0eh
mov bx, 0
.more_to_print:
lodsb
cmp al, 0
je .done
int 10h
jmp .more_to_print
.done:
ret
get_character:
mov ah, 00h
int 16h
ret
print_character:
mov ah, 0eh
mov bx, 0
int 10h
ret
_main:
mov si, text
call print_screen
mov si, crlf
call print_screen
mov si, anykey
call print_screen
call get_character
call print_character
int 20h
text db 'Hello World!', 0
crlf db 0Dh, 0Ah, 0
anykey db 'Press any key to continue . . . ', 0