<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Microprocessor | Student Projects</title>
	<atom:link href="https://studentprojects.in/category/electronics/microprocessor/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Mon, 14 Mar 2022 17:18:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>ASM program to arrange an array of data in descending order using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-descending-order-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-descending-order-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 14 Mar 2022 17:17:05 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8747</guid>

					<description><![CDATA[<p>AIM: To write a program to arrange an array of data in descending order ALGORITHM: Initialize HL pair as memory pointer Get the count at 4200 into C – register Copy it in D – register (for bubble sort (N-1) times required) Get the first value in A – register Compare it with the value</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-descending-order-using-8085/">ASM program to arrange an array of data in descending order using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To write a program to arrange an array of data in descending order</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Initialize HL pair as memory pointer</li><li>Get the count at 4200 into C – register</li><li>Copy it in D – register (for bubble sort (N-1) times required)</li><li>Get the first value in A – register</li><li>Compare it with the value at next location.</li><li>If they are out of order, exchange the contents of A –register and Memory</li><li>Decrement D –register content by 1</li><li>Repeat steps 5 and 7 till the value in D- register become zero</li><li>Decrement C –register content by 1</li><li>Repeat steps 3 to 9 till the value in C – register becomes zero</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">        LXI H,4200
        MOV C,M
        DCR C 
REPEAT: MOV D,C
        LXI H,4201
LOOP:   MOV A,M
        INX H
        CMP M
        JNC SKIP
        MOV B,M
        MOV M,A
        DCX H
        MOV M,B
        INX H
SKIP:   DCR D
        JNZ LOOP
        DCR C
        JNZ REPEAT
        HLT</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Input:</strong></td><td>4200</td><td>05 (Array Size)</td></tr><tr><td><br></td><td>4201</td><td>01</td></tr><tr><td><br></td><td>4202</td><td>02</td></tr><tr><td><br></td><td>4203</td><td>03</td></tr><tr><td><br></td><td>4204</td><td>04</td></tr><tr><td><br></td><td>4205</td><td>05</td></tr><tr><td><br><strong>Output:</strong></td><td><br>4200</td><td><br>05(Array Size)</td></tr><tr><td><br></td><td>4201</td><td>05</td></tr><tr><td><br></td><td>4202</td><td>04</td></tr><tr><td><br></td><td>4203</td><td>03</td></tr><tr><td><br></td><td>4204</td><td>02</td></tr><tr><td><br></td><td>4205</td><td>01</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong> Thus the given array of data was arranged in descending order.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-descending-order-using-8085/">ASM program to arrange an array of data in descending order using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-descending-order-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to arrange an array of data in ascending order using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-ascending-order-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-ascending-order-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 14 Mar 2022 05:56:31 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<category><![CDATA[ASM]]></category>
		<category><![CDATA[8085]]></category>
		<category><![CDATA[ASM program]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8714</guid>

					<description><![CDATA[<p>AIM: To write a program to arrange an array of data in ascending order ALGORITHM: Initialize HL pair as memory pointer Get the count at 4200 into C – register Copy it in D – register (for bubble sort (N-1) times required) Get the first value in A – register Compare it with the value</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-ascending-order-using-8085/">ASM program to arrange an array of data in ascending order using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To write a program to arrange an array of data in ascending order</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Initialize HL pair as memory pointer</li><li>Get the count at 4200 into C – register</li><li>Copy it in D – register (for bubble sort (N-1) times required)</li><li>Get the first value in A – register</li><li>Compare it with the value at next location.</li><li>If they are out of order, exchange the contents of A –register and Memory</li><li>Decrement D –register content by 1</li><li>Repeat steps 5 and 7 till the value in D- register become zero</li><li>Decrement C –register content by 1</li><li>Repeat steps 3 to 9 till the value in C – register becomes zero</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">        LXI H,4200
        MOV C,M
        DCR C 
REPEAT: MOV D,C
        LXI H,4201
LOOP:   MOV A,M
        INX H
        CMP M
        JC SKIP
        MOV B,M
        MOV M,A
        DCX H
        MOV M,B
        INX H
SKIP:   DCR D
        JNZ LOOP
        DCR C
        JNZ REPEAT
        HLT</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td><br><strong>Input:</strong></td><td><br>4200</td><td><br>05 (Array Size)</td></tr><tr><td><br></td><td>4201</td><td>05</td></tr><tr><td><br></td><td>4202</td><td>04</td></tr><tr><td><br></td><td>4203</td><td>03</td></tr><tr><td><br></td><td>4204</td><td>02</td></tr><tr><td><br></td><td>4205</td><td>01</td></tr><tr><td><br><strong>Output:</strong></td><td><br>4200</td><td><br>05(Array Size)</td></tr><tr><td><br></td><td>4201</td><td>01</td></tr><tr><td><br></td><td>4202</td><td>02</td></tr><tr><td><br></td><td>4203</td><td>03</td></tr><tr><td><br></td><td>4204</td><td>04</td></tr><tr><td><br></td><td>4205</td><td>05</td></tr></tbody></table></figure>



<p><strong>RESULT: </strong>Thus the given array of data was arranged in ascending order.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-ascending-order-using-8085/">ASM program to arrange an array of data in ascending order using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-arrange-an-array-of-data-in-ascending-order-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to find the smallest number in an array of data using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-smallest-number-in-an-array-of-data-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-smallest-number-in-an-array-of-data-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 14 Mar 2022 05:49:22 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8711</guid>

					<description><![CDATA[<p>AIM: To find the smallest number in an array of data using 8085 instruction set. ALGORITHM: Load the address of the first element of the array in HL pair Move the count to B – reg. Increment the pointer Get the first data in A – reg. Decrement the count. Increment the pointer Compare the</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-smallest-number-in-an-array-of-data-using-8085/">ASM program to find the smallest number in an array of data using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To find the smallest number in an array of data using 8085 instruction set.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Load the address of the first element of the array in HL pair</li><li>Move the count to B – reg.</li><li>Increment the pointer</li><li>Get the first data in A – reg.</li><li>Decrement the count.</li><li>Increment the pointer</li><li>Compare the content of memory addressed by HL pair with that of A &#8211; reg.</li><li>If carry = 1, go to step 10 or if Carry = 0 go to step 9</li><li>Move the content of memory addressed by HL to A – reg.</li><li>Decrement the count</li><li>Check for Zero of the count. If ZF = 0, go to step 6, or if ZF = 1 go to next step.</li><li>Store the smallest data in memory.</li><li>Terminate the program.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">       LXI H,4200 ;Set pointer for array 
       MOV B,M    ;Load the Count
       INX H
       MOV A,M    ;Set 1st element as largest data
       DCR B      ;Decrement the count
LOOP:  INX H
       CMP M      ;If A-reg &lt; M go to AHEAD
       JC AHEAD
       MOV A,M    ;Set the new value as largest
AHEAD: DCR B
       JNZ LOOP   ;Repeat comparisons till count = 0
       STA 4300   ;Store the largest value at 4300
       HLT</code></pre>



<p>OBSERVATION:</p>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Input:</strong></td><td>05 (4200)</td></tr><tr><td><br></td><td>0A (4201)</td></tr><tr><td><br></td><td>F1 (4202)</td></tr><tr><td><br></td><td>1F (4203)</td></tr><tr><td><br></td><td>26 (4204)</td></tr><tr><td><br></td><td>FE (4205)</td></tr><tr><td><strong>Output:</strong></td><td><strong>0A (4300)</strong></td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to find the smallest number in an array of data was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-smallest-number-in-an-array-of-data-using-8085/">ASM program to find the smallest number in an array of data using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-smallest-number-in-an-array-of-data-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to find the largest number in an array of data using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-largest-number-in-an-array-of-data-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-largest-number-in-an-array-of-data-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 14 Mar 2022 03:53:29 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8709</guid>

					<description><![CDATA[<p>AIM: To find the largest number in an array of data using the 8085 instruction set. ALGORITHM: Load the address of the first element of the array in HL pair Move the count to B – reg. Increment the pointer Get the first data in A – reg. Decrement the count. Increment the pointer Compare</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-largest-number-in-an-array-of-data-using-8085/">ASM program to find the largest number in an array of data using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To find the largest number in an array of data using the 8085 instruction set.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Load the address of the first element of the array in HL pair</li><li>Move the count to B – reg.</li><li>Increment the pointer</li><li>Get the first data in A – reg.</li><li>Decrement the count.</li><li>Increment the pointer</li><li>Compare the content of memory addressed by HL pair with that of A &#8211; reg.</li><li>If Carry = 0, go to step 10 or if Carry = 1 go to step 9</li><li>Move the content of memory addressed by HL to A – reg.</li><li>Decrement the count</li><li>Check for Zero of the count. If ZF = 0, go to step 6, or if ZF = 1 go to next step.</li><li>Store the largest data in memory.</li><li>Terminate the program.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">       LXI H,4200 ;Set pointer for array 
       MOV B,M    ;Load the Count
       INX H
       MOV A,M    ;Set 1st element as largest data
       DCR B      ;Decrement the count
LOOP:  INX H
       CMP M      ;If A- reg > M go to AHEAD
       JNC AHEAD
       MOV A,M    ;Set the new value as largest
AHEAD: DCR B
       JNZ LOOP   ;Repeat comparisons till count = 0
       STA 4300   ;Store the largest value at 4300
       HLT</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Input:</strong></td><td>05 (4200)</td></tr><tr><td><br></td><td>0A (4201)</td></tr><tr><td><br></td><td>F1 (4202)</td></tr><tr><td><br></td><td>1F (4203)</td></tr><tr><td><br></td><td>26 (4204)</td></tr><tr><td><br></td><td>FE (4205)</td></tr><tr><td><strong>Output:</strong></td><td>FE (4300)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to find the largest number in an array of data was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-largest-number-in-an-array-of-data-using-8085/">ASM program to find the largest number in an array of data using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-find-the-largest-number-in-an-array-of-data-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to divide two 8 bit numbers using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-divide-two-8-bit-numbers-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-divide-two-8-bit-numbers-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Mon, 14 Mar 2022 02:20:55 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8707</guid>

					<description><![CDATA[<p>AIM: To perform the division of two 8 bit numbers using 8085. ALGORITHM: Start the program by loading HL register pair with address of memory location. Move the data to a register(B register). Get the second data and load into Accumulator. Compare the two numbers to check for carry. Subtract the two numbers. Increment the</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-divide-two-8-bit-numbers-using-8085/">ASM program to divide two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong></p>



<p>To perform the division of two 8 bit numbers using 8085.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Start the program by loading HL register pair with address of memory location.</li><li>Move the data to a register(B register).</li><li>Get the second data and load into Accumulator.</li><li>Compare the two numbers to check for carry.</li><li>Subtract the two numbers.</li><li>Increment the value of carry .</li><li>Check whether repeated subtraction is over and store the value of product and carry in memory location.</li><li>Terminate the program.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">      LXI H, 4150
      MOV B, M   ;Get the dividend in B – reg.
      MVI C, 00  ;Clear C – reg for qoutient
      INX H
      MOV A, M   ;Get the divisor in A – reg.
NEXT: CMP B      ;Compare A - reg with register B.
      JC LOOP    ;Jump on carry to LOOP
      SUB B      ;Subtract A – reg from B- reg.
      INR C      ;Increment content of register C.
      JMP NEXT   ;Jump to NEXT
LOOP: STA 4152   ;Store the remainder in Memory
      MOV A, C
      STA 4153   ;Store the quotient in memory
      HLT        ;Terminate the program.</code></pre>



<p><strong>OBSERVATION:</strong></p>



<p><strong>Input:</strong> FF (4150)</p>



<p>             FF (4251)</p>



<p><strong>Output:</strong> 01 (4152) Remainder</p>



<p>                 FE (4153) Quotient</p>



<p><strong>RESULT:</strong></p>



<p>Thus the program to divide two 8-bit numbers was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-divide-two-8-bit-numbers-using-8085/">ASM program to divide two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-divide-two-8-bit-numbers-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to multiply two 8 bit numbers using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-multiply-two-8-bit-numbers-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-multiply-two-8-bit-numbers-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 13 Mar 2022 17:40:50 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8705</guid>

					<description><![CDATA[<p>AIM: To perform the multiplication of two 8 bit numbers using 8085. ALGORITHM: Start the program by loading HL register pair with address of memory location. Move the data to a register (B register). Get the second data and load into Accumulator. Add the two register contents. Check for carry. Increment the value of carry.</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-multiply-two-8-bit-numbers-using-8085/">ASM program to multiply two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To perform the multiplication of two 8 bit numbers using 8085.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Start the program by loading HL register pair with address of memory location.</li><li>Move the data to a register (B register).</li><li>Get the second data and load into Accumulator.</li><li>Add the two register contents.</li><li>Check for carry.</li><li>Increment the value of carry.</li><li>Check whether repeated addition is over and store the value of product and carry in memory location.</li><li>Terminate the program.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">      MVI D, 00   ;Initialize register D to 00
      MVI A, 00   ;Initialize Accumulator content to 00
      LXI H, 4150
      MOV B, M    ;Get the first number in B - reg
      INX H
      MOV C, M    ;Get the second number in C- reg.
LOOP: ADD B       ;Add content of A - reg to register B.
      JNC NEXT    ;Jump on no carry to NEXT.
      INR D       ;Increment content of register D
NEXT: DCR C       ;Decrement content of register C.
      JNZ LOOP    ;Jump on no zero to address
      STA 4152    ;Store the result in Memory
      MOV A, D
      STA 4153    ;Store the MSB of result in Memory
      HLT         ;Terminate the program.</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>FE (4150)</td></tr><tr><td><br></td><td>FF (4151)</td></tr><tr><td>Output:</td><td>01 (4152)</td></tr><tr><td><br></td><td>FE (4153)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to multiply two 8-bit numbers was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-multiply-two-8-bit-numbers-using-8085/">ASM program to multiply two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-multiply-two-8-bit-numbers-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to subtract two 8 bit numbers using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-subtract-two-8-bit-numbers-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-subtract-two-8-bit-numbers-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 13 Mar 2022 17:32:36 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8703</guid>

					<description><![CDATA[<p>AIM: To perform the subtraction of two 8 bit numbers using 8085. ALGORITHM: Start the program by loading the first data into Accumulator. Move the data to a register (B register). Get the second data and load into Accumulator. Subtract the two register contents. Check for carry. If carry is present take 2’s complement of</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-subtract-two-8-bit-numbers-using-8085/">ASM program to subtract two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To perform the subtraction of two 8 bit numbers using 8085.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Start the program by loading the first data into Accumulator.</li><li>Move the data to a register (B register).</li><li>Get the second data and load into Accumulator.</li><li>Subtract the two register contents.</li><li>Check for carry.</li><li>If carry is present take 2’s complement of Accumulator.</li><li>Store the value of borrow in memory location.</li><li>Store the difference value (present in Accumulator) to a memory</li><li>location and terminate the program.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">      MVI C, 00 ;Initialize C to 00
      LDA 4150  ;Load the value to Acc.
      MOV B, A  ;Move the content of Acc to B register.
      LDA 4151  ;Load the value to Acc.
      SUB B
      JNC LOOP  ;Jump on no carry.
      CMA       ;Complement Accumulator contents.
      INR A     ;Increment value in Accumulator.
      INR C     ;Increment value in register C
LOOP: STA 4152  ;Store the value of A-reg to memory address.
      MOV A, C  ;Move contents of register C to Accumulator.
      STA 4153  ;Store the value of Accumulator memory address.
      HLT       ;Terminate the program.</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>06 (4150)</td></tr><tr><td><br></td><td>02 (4251)</td></tr><tr><td>Output:</td><td>04 (4152)</td></tr><tr><td><br></td><td>01 (4153)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to subtract two 8-bit numbers was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-subtract-two-8-bit-numbers-using-8085/">ASM program to subtract two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-subtract-two-8-bit-numbers-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to add two 8 bit numbers using 8085</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-add-two-8-bit-numbers-using-8085/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-add-two-8-bit-numbers-using-8085/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 13 Mar 2022 17:22:54 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8701</guid>

					<description><![CDATA[<p>AIM: To perform addition of two 8 bit numbers using 8085. ALGORITHM: Start the program by loading the first data into Accumulator. Move the data to a register (B register). Get the second data and load into Accumulator. Add the two register contents. Check for carry. Store the value of sum and carry in memory</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-add-two-8-bit-numbers-using-8085/">ASM program to add two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM: </strong>To perform addition of two 8 bit numbers using 8085.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Start the program by loading the first data into Accumulator.</li><li>Move the data to a register (B register).</li><li>Get the second data and load into Accumulator.</li><li>Add the two register contents.</li><li>Check for carry.</li><li>Store the value of sum and carry in memory location.</li><li>Terminate the program.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">      MVI C, 00 ;Initialize C register to 00
      LDA 4150  ;Load the value to Accumulator.
      MOV B, A  ;Move the content of Accumulator to B register.
      LDA 4151  ;Load the value to Accumulator.
      ADD B     ;Add the value of register B to A
      JNC LOOP  ;Jump on no carry.
      INR C     ;Increment value of register C
LOOP: STA 4152  ;Store the value of Accumulator (SUM).
      MOV A, C  ;Move content of register C to Acc.
      STA 4153  ;Store the value of Accumulator (CARRY)
      HLT       ;Halt the program.</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>80 (4150)</td></tr><tr><td><br></td><td>80 (4251)</td></tr><tr><td>Output:</td><td>00 (4152)</td></tr><tr><td><br></td><td>01 (4153)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to add two 8-bit numbers were executed.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-add-two-8-bit-numbers-using-8085/">ASM program to add two 8 bit numbers using 8085</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-add-two-8-bit-numbers-using-8085/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to count number of positive and negative numbers from a given series of numbers</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-count-number-of-positive-and-negative-numbers-from-a-given-series-of-numbers/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-count-number-of-positive-and-negative-numbers-from-a-given-series-of-numbers/#comments</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Mon, 04 Jun 2012 09:35:50 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<category><![CDATA[ASM program]]></category>
		<category><![CDATA[microprocessor]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3116</guid>

					<description><![CDATA[<p>Aim: &#8211; To write an assembly language program to count number of positive and negative numbers from a given series of numbers. MOV AX, DATA MOV DS, AX MOV CL, 05 XOR BL, BL XOR DL, DL LEA SI, SERIES NEXT2: MOV AL, [SI] SHR AL, O1 JNC NEXT1 INC BL JMP NEXT3 NEXT1: INC</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-count-number-of-positive-and-negative-numbers-from-a-given-series-of-numbers/">ASM program to count number of positive and negative numbers from a given series of numbers</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Aim: &#8211;   To write an assembly language program to count number of positive and negative numbers from a given series of numbers.</p>
<pre lang="ASM" line="1">
MOV AX, DATA
MOV DS, AX
MOV CL, 05
XOR BL, BL
XOR DL, DL
LEA SI, SERIES

NEXT2:	MOV AL, [SI]
SHR AL, O1
JNC NEXT1
INC BL
JMP NEXT3
NEXT1:	INC DL
NEXT3:	INC SI
DEC CL
JNZ NEXT2
MOV POS, DL
MOV NEG, BL
END
</pre>
<p><strong>Result</strong>: The numbers of positive and negative numbers are counted from the given series.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-count-number-of-positive-and-negative-numbers-from-a-given-series-of-numbers/">ASM program to count number of positive and negative numbers from a given series of numbers</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-count-number-of-positive-and-negative-numbers-from-a-given-series-of-numbers/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to count the number of even and odd numbers from a given series</title>
		<link>https://studentprojects.in/electronics/microprocessor/asm-program-to-count-the-number-of-even-and-odd-numbers-from-a-given-series/</link>
					<comments>https://studentprojects.in/electronics/microprocessor/asm-program-to-count-the-number-of-even-and-odd-numbers-from-a-given-series/#comments</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Mon, 04 Jun 2012 09:32:51 +0000</pubDate>
				<category><![CDATA[Microprocessor]]></category>
		<category><![CDATA[ASM program]]></category>
		<category><![CDATA[microprocessor]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3114</guid>

					<description><![CDATA[<p>Aim: &#8211; To write an assembly language program to count the number of even and odd numbers from a given series. MOV CL, 05 XOR BL, BL XOR DL, DL LEA SI, SERIES NEXT2: MOV AL, [SI] SHR AL, O1 JNC NEXT1 INC BL JMP NEXT3 NEXT1: INC DL NEXT3: INC SI DEC CL JNZ</p>
<p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-count-the-number-of-even-and-odd-numbers-from-a-given-series/">ASM program to count the number of even and odd numbers from a given series</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Aim: &#8211;   To write an assembly language program to count the number of even and odd numbers from a given series.</p>
<pre lang="ASM" line="1">
MOV CL, 05
XOR BL, BL
XOR DL, DL
LEA SI, SERIES
NEXT2:	MOV AL, [SI]
SHR AL, O1
JNC NEXT1

INC BL
JMP NEXT3
NEXT1:	INC DL
NEXT3:	INC SI
DEC CL
JNZ NEXT2
MOV EVEN, DL
MOV ODD, BL
END
</pre>
<p><strong>Result</strong>: The numbers of even and odd numbers are counted from the given series.</p><p>The post <a href="https://studentprojects.in/electronics/microprocessor/asm-program-to-count-the-number-of-even-and-odd-numbers-from-a-given-series/">ASM program to count the number of even and odd numbers from a given series</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microprocessor/asm-program-to-count-the-number-of-even-and-odd-numbers-from-a-given-series/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
