Programming the 8085
Home
Graphics
C++
Data Structures
Wednesday, August 4, 2010
Count odd and even numbers
13. Program to find even and odd numbers in a block of data.
4100 21 00 50 LXI H,05000H 4103 4E MOV C,M 4104 AF XRA A 4105 57 MOV D,A 4106 47 MOV B,A 4107 23 LOOP: INX H 4108 7E MOV A,M 4109 1F RAR 410A D2 11 41 JNC J1 410D 14 INR D 410E C3 12 41 JMP J2 4111 04 J1: INR B 4112 0D J2: DCR C 4113 C2 07 41 JNZ LOOP 4116 23 INX H 4117 72 MOV M,D 4118 23 INX H 4119 70 MOV M,B 411A 76 HLT
2 comments:
Unknown
October 13, 2012 at 9:23 PM
nice keep it up
Reply
Delete
Replies
Reply
Unknown
December 4, 2015 at 9:49 AM
Do you give me full code? Please
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
nice keep it up
ReplyDeleteDo you give me full code? Please
ReplyDelete