弄好了:
DATAS SEGMENT
;此处输入数据段代码
msg db 'sample',0ah,0dh,'$'
count equ $-msg-1
DATAS ENDS
STACKS SEGMENT
;此处输入堆栈段代码
STACKS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
MOV AX,DATAS
MOV DS,AX
mov bx,0
L:
mov ah,0Eh
mov al,[msg+bx]
inc bl
int 10h
cmp bx,count
jl L
;此处输入代码段代码
MOV AH,4CH
INT 21H
CODES ENDS
END START