ACEM PORTAL
Would you like to react to this message? Create an account in a few clicks or log in to continue.
ACEM PORTAL

::Community of ACEM students::
 
HomeHome  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
Poll
Latest topics
» Primer Imperio-Torre De Control Mp3
8085 program to find the sums of even and odd numbers of the table EmptyFri Feb 14, 2014 1:20 pm by bakakali

» LTSP Deployment
8085 program to find the sums of even and odd numbers of the table EmptySat May 09, 2009 11:31 am by Santos

» GTA SanAndreas 64kB!!!
8085 program to find the sums of even and odd numbers of the table EmptyTue May 05, 2009 2:56 pm by Santos

» EPL names..
8085 program to find the sums of even and odd numbers of the table EmptyThu Apr 30, 2009 4:26 pm by Kxhitiz

» Google logo.
8085 program to find the sums of even and odd numbers of the table EmptyThu Apr 30, 2009 4:22 pm by Kxhitiz

» Google logo.
8085 program to find the sums of even and odd numbers of the table EmptyThu Apr 30, 2009 11:36 am by Santos

» the longest website in the world haha
8085 program to find the sums of even and odd numbers of the table EmptyWed Apr 29, 2009 8:50 am by Kxhitiz

» Ubuntu 9.04 Jaunty Jackalope.
8085 program to find the sums of even and odd numbers of the table EmptySat Apr 25, 2009 12:31 am by Santos

» Program to display text with defined cursor position and defined color
8085 program to find the sums of even and odd numbers of the table EmptySat Apr 25, 2009 12:11 am by Santos

Navigation
 Portal
 Index
 Fun
 Memberlist
 Profile
 FAQ
 Search
May 2024
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
262728293031 
CalendarCalendar

 

 8085 program to find the sums of even and odd numbers of the table

Go down 
AuthorMessage
Kxhitiz
Admin
Admin
Kxhitiz


Posts : 24
Join date : 2009-03-06

8085 program to find the sums of even and odd numbers of the table Empty
PostSubject: 8085 program to find the sums of even and odd numbers of the table   8085 program to find the sums of even and odd numbers of the table EmptySat Mar 21, 2009 10:46 pm

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
Back to top Go down
https://advanced.forumotion.net
 
8085 program to find the sums of even and odd numbers of the table
Back to top 
Page 1 of 1
 Similar topics
-
» program for 8085 to find the smallest number
» 8086 program to display the given text in separate line words
» A simple assembly program to display text with background and foreground color
» Program to display text with defined cursor position and defined color

Permissions in this forum:You cannot reply to topics in this forum
ACEM PORTAL :: Programming :: Assembly Language-
Jump to: