;
MOV TPTR, #2000H
MOV R2, #100
MOV R3, #0
MOV R4, #0
MOV R5, #0
LOOP:
MOV A, @DPTR
JZ ZZZ
JB ACC.7, FU
INC R3 ;正数个数
JMP NEXT
FU:
INC R4 ;负数个数
JMP NEXT
ZZZ:
INC R5 ;0的个数
NEXT:
INC DPTR
DJNZ R2, LOOP
SJMP $
END