小燕双飞GO 发表于 2013-12-21 18:27:20

我的程序为何不能在电脑屏幕显示三行WELCOME TO MASM

assume cs:code,ds:data,ss:tble
data segment
   db 'welcome to masm!'
   db 02h,24h,71h
data ends

tble segment
dw 8 dup (0)
tble ends

code segment
start: mov ax,data
mov ds,ax
mov ax,tble
mov ss,ax
mov sp,10h
mov ax,0b872h
mov es,ax
mov si,0
mov di,0
mov bx,0
mov cx,3
s1: push cx

mov cx,16
s0: mov al,ds:
mov es:,al
mov al,ds:.10h
mov es:,al
inc si
add di,2
loop s0

mov si,0
inc bx
add di,120h
pop cx
loop s1

mov ax,4c00h
int 21h

code ends
end start
页: [1]
查看完整版本: 我的程序为何不能在电脑屏幕显示三行WELCOME TO MASM