马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
p segment
db 'welcom to masm!'
db 2,36,113
p ends
z segment
db 16 dup (0)
z ends
assume cs:code
code segment
start:
mov ax,p
mov ds,ax
mov ax,0b878h
mov es,ax
mov ax,z
mov ss,ax
mov sp,10h
mov di,0
mov si,0
mov cx,3
s0:
push cx
mov bx,0
mov bp,0
mov cx,15
s:
mov al,ds:[bx]
mov ah,0
mov es:[bp+si+3eh],al
mov dl,ds:[15+di]
mov dh,0
mov es:[bp+si+3fh],dl
inc bx
add bp,2
loop s
add si,0a0h
inc di
pop cx
loop s0
mov ax,4c00H
int 21H
code ends
end start
|