|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code
data segment
db "welcome to masm!",0
data ends
code segment
start:
mov ax,cs
mov ds,ax
mov si,offset do7c
mov ax,0
mov es,ax
mov di,200h
mov cx,offset do7cend - offset do7c
cld
rep movsb
mov ax,0
mov ds,ax
mov word ptr ds:[7ch*4],200h
mov word ptr ds:[7ch*4+2],0
jmp short start1
do7c:
push ax
push bx
push si
push dx
s:
mov ah,2
mov bh,0
int 10h
mov al,byte ptr ds:[si]
mov cl,al
jcxz ok
mov ah,9
mov bl,7
mov bh,0
mov cx,1
int 10h
inc si
inc dl
jmp short s
ok:
pop dx
pop si
pop bx
pop ax
iret
do7cend:nop
start1:
mov dh,10
mov dl,10
mov cl,2
mov ax,data
mov ds,ax
mov si,0
int 7ch
mov ax,4c00h
int 21h
code ends
end start |
|