第1个回答 2011-01-04
data segment
buff db 1,3,5,6,7,8,9,0,6,5,4,-4,-1,-7,-9,5,-7,-4,-3,2,43,4,3,-3,0,0,0,0,1,3
a1 db ?
a2 db ?
a3 db ?
data ends
code segment
assume ds:data,cs:code
start:
mov ax,data
mov ds,ax
mov si,0
mov cx,30
next:
cmp buff[si],0
ja next1
jz next2
inc a3
jmp tj
next1:
inc a1
jmp tj
next2:
inc a2
tj:
inc si
loop next
mov ax,4c00h
int 21h
code ends
end start