马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ds:date
code segment
date segment
db "welcome to masm!"
date ends
sta:mov ax,date
mov ds,ax
mov bx,0
mov ax,0b800h
mov es,ax
mov si,0
mov cx,7
s:mov al,ds:[bx]
mov es:[si],al
mov ah,01000010b
mov es:[si+1],ah
inc bx
add si,2
loop s
mov cx,4
s1:mov bx,0
mov si,0
mov al,ds:14h[bx]
mov es:0b814h[si],al
mov ah,01001000b
mov es:0b814h[si+1],ah
inc bx
add si,2
loop s1
mov cx,5
s2:mov bx,0
mov si,0
mov al,ds:18h[bx]
mov es:0b818h[si],al
mov ah,01110000b
mov es:0b818h[si+1],ah
inc bx
add si,2
loop s2
mov ax,4c00h
int 21h
code ends
end sta
|