1个回答
展开全部
data segment
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov cx,4000h
mov dx,0
mov si,0
mov bx,4000h
again:
mov al,[bx+si]
cmp al,41h
jnz next
inc dx
next:
inc si
loop again
mov ah,4ch
int 21h
code ends
end start
;finish!
data ends
code segment
assume cs:code,ds:data
start:
mov ax,data
mov ds,ax
mov cx,4000h
mov dx,0
mov si,0
mov bx,4000h
again:
mov al,[bx+si]
cmp al,41h
jnz next
inc dx
next:
inc si
loop again
mov ah,4ch
int 21h
code ends
end start
;finish!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询