assume cs:code, ds:data, ss:stack
data segment
f1 db 'Hello World... $'
data ends
stack segment
db 200 dup (0)
stack ends
code segment
start:
mov ax, data
mov ds, ax ; setting the dx register
lea dx, f1
mov ah, 09H ; set ah to 09H
int 21H ; trigger the the 21th interrupt
mov ax, 4c00H
int 21H
code ends
end start
----------------------------------------------------------------------------------------------------------
# add at 2015.12.14
效果截图 :