|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ss:stacksg
data segment
db 'welcome to masm!', 0
data ends
stacksg segment
dw 8 dup (0)
stacksg ends
code segment
start: mov dh, 8
mov dl, 3
mov cl, 2
mov ax,data
mov ds,ax
mov si,0
call show_str
mov ax,4c00h
int 21h
show_str:mov ax,0b800h
mov es,ax
mov al,160
sub dh,1
mul byte ptr dh
sub dl,1
add dl,dl
mov dh,0
add ax,dx
mov bx,ax
mov ax,0
mov al,cl
s: mov cl,[si]
mov ch,0
jcxz ok
mov es:[bx],cl
mov es:[bx+1],al
inc si
add bx,2
jmp short s
ok: ret
code ends
end start |
|