|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ds:data
data segment
db 'Welcome masm!'
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ax,0b8a0h
mov es,ax
mov bx,64
mov si,0
mov cx,13
s:
mov al,ds:[si]
mov es:[bx],al
mov ax,02h
mov es:[bx+1],ax
add si,1
add bx,2
loop s
mov ax,0b8aah
mov es,ax
mov bx,64
mov si,0
mov cx,13
s0:
mov al,ds:[si]
mov es:[bx],al
mov ax,24h
mov es:[bx+1],ax
add si,1
add bx,2
loop s0
mov ax,0b8b4h
mov es,ax
mov bx,64
mov si,0
mov cx,13
s1:
mov al,ds:[si]
mov es:[bx],al
mov ax,71h
mov es:[bx+1],ax
add si,1
add bx,2
loop s1
mov ax,4c00h
int 21h
code ends
end start |
|