汇编问题:统计一组数中的负数个数~~
程序代码:
.486 DATA SEGMENT USE16 BUF DB -19,28,37,-46,55,61,-70,255 DATA ENDS CODE SEGMENT USE16 ASSUME CS:CODE,DS:DATA BEG: MOV AX,DATA MOV DS,AX MOV DL,0 MOV CH,8 MOV SI,OFFSET BUF AGAIN: CMP BYTE PTR [SI],0 JAE REPT INC DL REPT: INC SI INC SI LOOP AGAIN ADD DL,30H MOV AH,2 INT 21H MOV AH,4CH INT 21H CODE ENDS END BEG统计8个数中的负数个数,
但执行结果为0
请问谁可以帮我修改一下?
谢谢~