马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code
data segment
db 'welcome to masm!'
db 02h,24h,71h
data ends
stack segment
dw 0
stack ends
code segment
start: mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,2
mov ax,0b800h
mov es,ax
mov bx,0
mov di,0
mov cx,3
s0: push cx
mov bp,0
mov si,0
mov cx,16
s: mov al,[di+10h]
mov byte ptr es:[bx+721h+si],al
mov al,ds:[bp]
mov byte ptr es:[bx+720h+si],al
add si,2
inc bp
loop s
add bx,0a0h
inc di
pop cx
loop s0
mov ax,4c00h
int 21h
code ends
end start
|