马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ds:data,ss:stack
data segment
db 'welcome to masm!'
db 02H,24H,71H
data ends
stack segment
dw 8 dup(0)
stack ends
code segment
start:
mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,10h
mov ax,0b872h
mov cx,3
s1:push cx
mov es,ax
mov si,0
mov di,0
mov cx,10h
s:mov dl,ds:[si]
mov es:[di],dl
mov dl,ds:[bx+10h]
mov es:[di+1],dl
inc si
add di,2
loop s
pop cx
add bx,1
add ax,0ah
loop s1
mov ax,4c00H
int 21H
code ends
end start
|