You are on page 1of 1

.

model small
.code
org 100h
start: jmp main
msg1 db "Hello$"
; define 6 bytes, fill it with 'Hello', $ ->
terminator
msg2 db 0dh, 0ah, "World$" ; 0dh -> carriage return. 0ah -> line feed
main proc near
lea dx, msg1
; load effective add of msg1 to d register
mov ah, 09h
; ah = 09h - write string to standard output
int 21h
; call interrupt 21
lea dx, msg2
mov ah, 09h
int 21h
exit: int 20h
main endp
end start

; load effective add of msg2 to d register


; ah = 09h - write string to standard output
; call interrupt 21
; graceful exit

You might also like