Aim: – To write an assembly language program to find a letter in the given string.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | MOV AX, DATA MOV DS, AX MOV ES, AX MOV BX, 00 MOV CL, 00 LOOK: MOV AL, A[BX] CMP AL, KEY JE L1 INC BX CMP AL, 00 JNE LOOK JMP L2 L1: MOV CL, 01 END |
Result: Given letter is found from the given string.
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