Professional Documents
Culture Documents
Aim: - To write an assembly language program to count number of positive and negative numbers from a given series of numbers.
MOV AX, DATA MOV DS, AX MOV CL, 05 XOR BL, BL XOR DL, DL LEA SI, SERIES NEXT2: MOV AL, [SI] SHR AL, O1 JNC NEXT1 INC BL JMP NEXT3 INC DL INC SI DEC CL JNZ NEXT2 MOV POS, DL MOV NEG, BL
NEXT1: NEXT3:
Lab in-charge
HOD, ECE