|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
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:[si]
mov es:[di],al
mov al,ds:[bx].10h
mov es:[di+1],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 |
|