Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Articles / Source Code > Programming > Assembly language programming (ALP)

Discuss / Comment  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More
 
Bookmarks Article Tools Search this Article Display Modes

8085 Assembly language programming code for beginners


On 15th May, 2005
8085 Assembly language programming code for beginners

Show Printable Version Email this Page Subscription Add to Favorites Copy 8085 Assembly language programming code for beginners link

Author

shabbir ( Go4Expert Founder )

Shabbir is a developer in the field of Applications, web as well as database designing and is devoted to the optimization and usability of the code. He maintains Programming forum and is a C++ addict.


All articles By shabbir

Recent Articles

Similar Articles

Addition of two 8 bit numbers.
Code:
   MVI B, 06
   //Load Register B with the Hex value 06
   MOV A, B
   //Move the value in B to the Accumulator or register A
   MVI C, 07
   //Load the Register C with the second number 07
   ADD C
   //Add the content of the Accumulator to the Register C
   STA 8200
   //Store the output at a memory location e.g. 8200
   HLT
   //Stop the program execution
Addition of two 8 bit numbers stored in memory
Code:
   LDA 8500
   //Load the accumulator with the address of memory viz 8500
   MOV B, A
   Move the accumulator value to the register B
   LDA 8501
   //Load the accumulator with the address of memory viz 8501
   ADD B
   //Add the content of the Accumulator to the Register B
   STA 8502
   //Store the output at a memory location e.g. 8502
   HLT
   //Stop the program execution
Addition of two 8 bit numbers stored in memory and storing the carry
Code:
   LDA 8500
   //Load the accumulator with the address of memory viz 8500
   MOV B, A
   Move the accumulator value to the register B
   LDA 8501
   //Load the accumulator with the address of memory viz 8501
   ADD B
   //Add the content of the Accumulator to the Register B
   STA 8502
   //Store the output at a memory location e.g. 8502
   MVI A, 00
   //clear the accumulator with 00
   ADC A
   //Add with carry the content of the accumulator
   STA 8503
   //Store the output at a memory location e.g. 8503
   HLT
   //Stop the program execution
Implementing the above program for the subtraction is very simple just replace ADD with SUB and ADC with SBB and all should be working fine.
The Following User Says Thank You to shabbir For This Useful Post:
stephen ng'ethe (05-11-2010)
Old 03-04-2006, 10:38 PM   #2
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,714
Thanks: 119
Thanked 293 Times in 227 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: 8085 Assembly language programming code for beginners


Moved the post into the new thread at sorting of numbers in assembly language programming
shabbir is offline   Reply With Quote
Old 03-21-2006, 09:01 AM   #3
Light Poster
 
Join Date: Mar 2006
Location: pahang,malaysia
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
foundy is on a distinguished road

Re: 8085 Assembly language programming code for beginners


help me...help me....
foundy is offline   Reply With Quote
Old 03-21-2006, 01:32 PM   #4
Team Leader
 
coderzone's Avatar
 
Join Date: Jul 2004
Posts: 471
Thanks: 2
Thanked 14 Times in 10 Posts
Rep Power: 7
coderzone is on a distinguished road

Re: 8085 Assembly language programming code for beginners


Quote:
Originally Posted by foundy
help me...help me....
But how.
__________________
My First Article - Query Optimization | All My Articles at Go4Expert.
coderzone is offline   Reply With Quote
Old 03-21-2006, 02:28 PM   #5
Light Poster
 
Join Date: Mar 2006
Location: pahang,malaysia
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
foundy is on a distinguished road

Re: 8085 Assembly language programming code for beginners


i've an asignment to do...but i don't know how to do it....
foundy is offline   Reply With Quote
Old 03-21-2006, 05:49 PM   #6
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,714
Thanks: 119
Thanked 293 Times in 227 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: 8085 Assembly language programming code for beginners


Quote:
Originally Posted by foundy
i've an asignment to do...but i don't know how to do it....
Just create a new thread about the problem you are facing and definitely some members and experts will try to help you out.
shabbir is offline   Reply With Quote
Old 04-25-2006, 02:23 PM   #7
Newbie Member
 
Join Date: Apr 2006
Location: malaysia
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
miss ain is on a distinguished road
Send a message via Yahoo to miss ain

Re: 8085 Assembly language programming code for beginners


can u help n explain 2 me to write 8085 instruction for this program?

Write 8085 ALP to convert the given binary number in a memory location X to the equivalent unpacked BCD numbers in three consecutive memory location
miss ain is offline   Reply With Quote
Old 04-25-2006, 08:44 PM   #8
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,714
Thanks: 119
Thanked 293 Times in 227 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: 8085 Assembly language programming code for beginners


Quote:
Originally Posted by miss ain
can u help n explain 2 me to write 8085 instruction for this program?

Write 8085 ALP to convert the given binary number in a memory location X to the equivalent unpacked BCD numbers in three consecutive memory location
Just create a new thread about the problem you are facing and definitely some members and experts will try to help you out. This post will not be seen by all the members.
shabbir is offline   Reply With Quote
Old 10-28-2006, 06:55 PM   #9
Newbie Member
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
santu1225 is on a distinguished road

Re: 8085 Assembly language programming code for beginners


i am new to this form.

Thank you for doing this great job.I may need ur help often, i just started my MS in computer science and I joined in ALP.

Thanks
with regards
santosh
santu1225 is offline   Reply With Quote
Old 10-29-2006, 09:05 AM   #10
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 12,714
Thanks: 119
Thanked 293 Times in 227 Posts
Rep Power: 10
shabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud ofshabbir has much to be proud of
Send a message via Yahoo to shabbir

Re: 8085 Assembly language programming code for beginners


santu1225 Welcome to G4EF.
shabbir is offline   Reply With Quote
Discuss / Comment  Copy HTML to Clipboard  Copy BBCode to Clipboard  | More


Currently Active Users Reading This Article: 1 (0 members and 1 guests)
 
Article Tools Search this Article
Search this Article:

Advanced Search
Display Modes
Bookmarks

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads / Articles
Thread Thread Starter Forum Replies Last Post
Artificial Intelligence (LISP) pradeep Engineering concepts 6 08-02-2010 04:38 PM
A Brief History of Unix pradeep Unix / Linux 0 05-01-2005 10:29 PM

 

All times are GMT +5.5. The time now is 05:26 AM.