Assignment Help, Cloud Based ERP System, Microsoft NAV Certification
WELCOME !!

Please Register, ask for assignment solutions & post the solutions if you know any.

LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.

Assignment Help, Cloud Based ERP System, Microsoft NAV Certification
WELCOME !!

Please Register, ask for assignment solutions & post the solutions if you know any.

LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.

Assignment Help, Cloud Based ERP System, Microsoft NAV Certification

Stock Market, Online Tutoring, Cloud Based ERP System, Microsoft Dynamics Reporting, Microsoft Nav Certification

Similar topics

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Assesment question for 8085 Empty Assesment question for 8085 21st March 2009, 5:35 pm

tihor

tihor
Administrator
Q> With the assumption that there are 100 eight bit data in a table starting form A000H, Write an 8085 program to find the sums of even and odd numbers of the table and store the 16-bit sums at the end of the table.

Solution:

LXI B,A000H
LXI D,0000H
LXI H,0000H

START: LDAX B
RRC
JC ODD
RLC
ADD E
JNZC P1
INR D
P1: MOV E,A
JMP INCR

ODD: RLC
ADD L
JNC P2
INR H
P2: MOV L,A

INCR: INX B
MOV A,C
CPI 64H
JNZ START

SHLD A064H
XCHG
SHLD A066H
HLT

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum