MOV R5, #0 MOV R6, #0 MOV R7, #0 MOV DPTR, #0200H MOV R2, #50LP: MOVX A, @DPTR JZ ZERO JB ACC.7, NEG INC R5 SJMP NEXTZERO: INC R6 SJMP NEXTNEG: INC R7NEXT: INC DPTR DJNZ R2, LP SJMP $ END