汇编语言--输出到屏幕

assume cs:code,ds:data

data segment
	db 'hello HAPPY!!!','$'     ;需要输出的字符串以$结尾
data ends

code segment
start:
	mov ax,data
	mov ds,ax
	mov dx,0
	mov ah,9
	int 21h

	mov ax,4c00h
	int 21h
code ends
end start

 

你可能感兴趣的:(汇编)