Learn how to Make Money Online | Free Tech Magazines
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  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 
 
Bookmarks Article Tools Search this Article Display Modes

8085 Assembly language programming code for beginners

By shabbir shabbir is offline

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

ADVERTISEMENT
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.
Old 03-04-2006, 11:38 PM   #2
shabbir
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 10,943
Thanks: 35
Thanked 167 Times in 139 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, 10:01 AM   #3
foundy
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, 02:32 PM   #4
coderzone
Team Leader
 
coderzone's Avatar
 
Join Date: Jul 2004
Posts: 436
Thanks: 0
Thanked 5 Times in 3 Posts
Rep Power: 6
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, 03:28 PM   #5
foundy
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, 06:49 PM   #6
shabbir
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 10,943
Thanks: 35
Thanked 167 Times in 139 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, 03:23 PM   #7
miss ain
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, 09:44 PM   #8
shabbir
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 10,943
Thanks: 35
Thanked 167 Times in 139 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, 07:55 PM   #9
santu1225
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, 10:05 AM   #10
shabbir
Go4Expert Founder
 
shabbir's Avatar
 
Join Date: Jul 2004
Location: On Earth
Posts: 10,943
Thanks: 35
Thanked 167 Times in 139 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  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 


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
Forum Jump

Similar Threads / Articles
Thread Thread Starter Forum Replies Last Post
Artificial Intelligence (LISP) pradeep Engineering concepts 3 01-07-2007 04:19 PM
A Brief History of Unix pradeep Unix / Linux 0 05-01-2005 11:29 PM

 

All times are GMT +5.5. The time now is 06:14 AM.