Rishi Rathor has Published 142 Articles

8085 program to find the sum of first n natural numbers

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

3K+ Views

In this program we will see how to add first n natural numbers.Problem StatementWrite 8085 Assembly language program to add first N natural numbers. The value of N is provided.DiscussionWe are getting the value of N from memory location 8000H. We are using the number N as count variable, in ... Read More

8085 program to find 1's and 2's complement of 8-bit number

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

8K+ Views

In this program we will see how to find 1's complement and 2's complement of an 8-bit number.Problem StatementWrite 8085 Assembly language program to find 1's complement and 2's complement of a number stored in 8000H.Discussion8085 has an instruction CMA. This instruction complements the content of Accumulator. For 1's complement ... Read More

8085 program to find maximum and minimum of 10 numbers

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

2K+ Views

In this program we will see how to find the maximum and minimum number in a block data.Problem StatementWrite 8085 Assembly language program to find the maximum and minimum number in a block often 8-bit numbers.DiscussionIn this program we are taking the first number of the block into register D ... Read More

What is the MySQL error: “Data too long for column”?

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

21K+ Views

The “Data too long for column” error occurs when you insert more data for a column that does not have the capability to store that data.For Example - If you have data type of varchar(6) that means it stores only 6 characters. Therefore, if you will give more than 6 characters, then ... Read More

Using MySQL, can I sort a column but allow 0 to come last?

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

102 Views

You can sort a column, with 0 come last with the help of ORDER BY. The syntax is as follows −select *from yourTableName order by yourFieldName = 0, yourFieldName;To understand the above concept, let us create a table. The query to create a table is as follows −mysql> create table ... Read More

8085 program to swap two 8-bit numbers

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

5K+ Views

In this program we will see how to swap two numbers.Problem StatementWrite 8085 Assembly language program to swap two 8-bit number stored at location 8000Hand 8001H.DiscussionIn 8085, there is an instruction XCHG. Using this we can swap the contents of DE and HL values. We are taking the numbers and ... Read More

How to get a list of MySQL user hosts?

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

526 Views

Firstly, get a list of MySQL user accounts, using MySQL.user table. You can use select user column from MySQL.user table to get a list of MySQL user accounts.The query is as follows −mysql> select user from MySQL.user;The following output displays all the users −+------------------+ | user         ... Read More

8085 program to find square root of a number

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

3K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will find the square root of a number.Problem StatementWrite an assembly language program to find the square root of a number in L and store the result at location 8100HDiscussionHere we are using division method for finding square ... Read More

Exact Radius and Size of iPhone App Icons

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

632 Views

Every iPhone application needs some icons that are displayed when certain events occur, like when some new notification comes, or the icon for home screen or the icon that is displayed on spotlight.All these icons have different size properties but apart from their size there are some common properties they ... Read More

8085 program to search a number in an array of n numbers

Rishi Rathor

Rishi Rathor

Updated on 30-Jul-2019 22:30:24

2K+ Views

In this program we will see how to search an element in an array of bytes using 8085.Problem StatementWrite 8085 Assembly language program to search a key value in an array of data using linear search technique.DiscussionIn this program the data are stored at location 8002H to 8007H. The 8000H ... Read More

Advertisements