Find the Sum of Series of Even Numbers in 8085

Arjun Thakur
Updated on 30-Jul-2019 22:30:26

2K+ Views

In this program we will see how to find the sum of all even numbers.Problem StatementWrite 8085 Assembly language program to find sum of all even numbers stored in an array. The size of the array is stored at location F100; the numbers are stored from memory location F101 onwards. The result will be stored at F150.DiscussionTo check whether a number is odd or even, we can to AND operation. If a number is odd, then it will contain 1 as LSb, for even LSb will be 0. So after AND operation if the result is 0, then it is ... Read More

8085 Program for Binary Search

Chandu yadav
Updated on 30-Jul-2019 22:30:26

2K+ Views

Here we will see how to perform binary search in 8085.Problem Statement:Write 8085 Assembly language program to perform binary search on a set of data stored at location F110 to F119. The key is located at F100.DiscussionTo perform binary search, the array must be sorted. We are taking the lower limit into L and upper limit into H. The array location is stored at DE register pair. The mid is calculated using (H + L)/2. To perform this division, we are just shifting it to the right one time. Then put the mid value into D and check the item ... Read More

HTML optgroup Disabled Attribute

George John
Updated on 30-Jul-2019 22:30:26

186 Views

The disabled attribute of the is used to disable an option-group. After that, the option-group becomes unclickable. Following is the syntax −Let us now see an example to implement the disabled attribute of the element −Example Live Demo Water Levels Impurity Level           3:2       5:3               2L       5L       10L       20L     OutputIn the above example, we have set two option-groups −    3:2    5:3    2L    5L    10L    20L We have set one of the option-group as disabled −    2L    5L    10L    20L Now the above options will become disabled and visitors won’t be able to select them.

Area of Circle Inscribed within Rhombus

Sharon Christine
Updated on 30-Jul-2019 22:30:26

3K+ Views

Circle inscribed in a rhombus touches its four side a four ends. The side of rhombus is a tangent to the circle.Here, r is the radius that is to be found using a and, the diagonals whose values are given.Now the area of triangle AOB = ½ * OA * OB = ½ * AB * r (both using formula ½*b*h).½ *a/2*b/2 = ½ *( √ (a2/4 + b2/4))*ra*b/8 = √ (a2+ b2 )*r /4r = a*b/ 2√ (a2+ b2 )Area of circle = π*r*r = π*(a2*b2)/4(a2+ b2 )ExampleThe diagonal of the rhombus 5 & 10.Area is 15.700000Example Code Live Demo#include ... Read More

Search a Word by Case Sensitivity in MySQL

Ankith Reddy
Updated on 30-Jul-2019 22:30:26

534 Views

You can use BINARY along with the LIKE operator. Let us first create a table −mysql> create table DemoTable    (    Header text    ); Query OK, 0 rows affected (1.09 sec)Insert records in the table using insert command −mysql> insert into DemoTable values('Programming tutorials on MySQL'); Query OK, 1 row affected (0.11 sec) mysql> insert into DemoTable values('programming in Java language'); Query OK, 1 row affected (0.14 sec) mysql> insert into DemoTable values('Program in C language'); Query OK, 1 row affected (0.15 sec) mysql> insert into DemoTable values('pRograMMing in Python language'); Query OK, 1 row affected (0.41 sec)Display ... Read More

GetMaxColumnsInOrderBy Method in Java DatabaseMetadata

Nishtha Thakur
Updated on 30-Jul-2019 22:30:26

100 Views

The getMaxColumnsInOrderBy() method of the DatabaseMetaData interface is used to find out the maximum number of columns that the underlying database allows in an ORDER BY clause.This method returns an integer value, representing the maximum number of columns allowed in an ORDER BY clause. If this value is 0 it indicates that there is no limit or, limit is unknown.To get the DatabaseMetaData object −Make sure your database is up and running.Register the driver using the registerDriver() method of the DriverManager class. Pass an object of the driver class corresponding to the underlying database.Get the connection object using the getConnection() ... Read More

Display Data from MySQL Column Separated by Comma

Smita Kapse
Updated on 30-Jul-2019 22:30:26

859 Views

You can use GROUP_CONCAT() function from MySQL to display result as a comma separated list. Let us first create a table −mysql> create table DemoTable    (    Value int    ); Query OK, 0 rows affected (0.26 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(10); Query OK, 1 row affected (0.06 sec) mysql> insert into DemoTable values(20); Query OK, 1 row affected (0.07 sec) mysql> insert into DemoTable values(30); Query OK, 1 row affected (0.06 sec) mysql> insert into DemoTable values(40); Query OK, 1 row affected (0.07 sec) mysql> ... Read More

Use Bitcoins as Traditional Currency

Prasanna Kotamraju
Updated on 30-Jul-2019 22:30:26

154 Views

The bitcoin craze is gradually taking a leap now and the investors are optimistic about its growth and increased value in the coming future. However, the stability of bitcoin currency is still a big concern for everyone. Nonetheless, people are mining bitcoins, getting them exchanged and also dealing in them. This shows its value and power, which is being elongated by each passing year. Despite this, many bitcoin owners linger in vacuum when it comes to converting them into cash. Here are some hassle-free methods you can try to get it right −Cash It On Bitcoin ATMsA Bitcoin ATM works ... Read More

Determine Cubes of Numbers in an Array Using 8086

Chandu yadav
Updated on 30-Jul-2019 22:30:26

1K+ Views

In this program we will see how to find the cubes of n numbers stored in an array.Problem StatementWrite 8086 Assembly language program to calculate cubes of each numbers stored in an array of size n. The array size is stored at location offset 600, and Numbers are stored at 601 onwards.DiscussionTo solve this problem, we are taking the size of the array into the CL register, and make CH = 00H for counting. Now from each location take the number into accumulator, to make cube, we have to multiply it three times. so we are storing the number temporarily ... Read More

Find Set Bit of Accumulator in 8085

George John
Updated on 30-Jul-2019 22:30:26

497 Views

Here we will see how to find the place of the set bit of the Accumulator data.Problem StatementWrite 8085 Assembly language program to find the position where the bit is 1. In the accumulator all bits are 0, but only one bit is 1. We have to get the position of the bit which is 1. The position will be displayed in decimal from 1 to 8.DiscussionWe are taking the number like (0010 0000). The place value is 6. So we are rotating the number to the right through carry. If the carry bit is 1, then we break the ... Read More

Advertisements