帮忙看看我的程序
计算数据块中的正数,负数和零的个数!并显示结果
下面是我自己编的程序,但是有错
在线等,比较急
data segment
str db 09,23,0,-12,-13
res db 'the number of zs is 0'
db 'the number of fs is 0'
db 'the number of zero is 0 $'
data ends
code segment
assume ds:data,cs:code
start:mov ax,data
mov ds,ax
mov cx,5
lea bx,str
next:cmp byte ptr[bx],0
jnz next1
inc [res+65]
jmp next3
next1:test byte ptr[bx],80h
js next2
inc [res+21]
jmp next3
next2:inc [res+42]
next3:inc bx
loop next
lea dx, res
mov ah,09
int 21h
code ends
end start