Aim: – To write an assembly language program to count the number of even and odd numbers from a given series.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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 NEXT1: INC DL NEXT3: INC SI DEC CL JNZ NEXT2 MOV EVEN, DL MOV ODD, BL END |
Result: The numbers of even and odd numbers are counted from the given series.
Description :
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Resources #Terms of Use
Copyright©2012 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com
This was really not helpful in any way.;@
mines is not working guys