Jennifer Nicholas has Published 291 Articles

How to not allow duplicate entries to be entered a MySQL Table?

Jennifer Nicholas

Jennifer Nicholas

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

575 Views

To not allow any duplicate entry to be entered in a MySQL table, you need to add unique key. The syntax is as follows −alter ignore table yourTableName add constraint unique key(yourColumName);The above syntax sets unique key. To understand the above syntax, let us create a table.The following is the ... Read More

8085 program to check whether the given number is even or odd

Jennifer Nicholas

Jennifer Nicholas

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

10K+ Views

In this program we will see how to check whether a number is odd or even.Problem StatementWrite 8085 Assembly language program to check whether a number is odd or even.DiscussionThe Odd Even checking is very simple. we can determine one number is odd or even by checking only the LSb. ... Read More

8085 program to find maximum of two 8 bit numbers

Jennifer Nicholas

Jennifer Nicholas

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

844 Views

In this program we will see how to find the maximum of two numbers.Problem StatementWrite 8085 Assembly language program to find the maximum number of two 8-bit number stored at location 8000H and 8001H.DiscussionThis checking is done by using the CMP instruction. This instruction is very similar to the SUB ... Read More

Appending data to a MySQL field that already has data in it?

Jennifer Nicholas

Jennifer Nicholas

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

6K+ Views

You can append data to a MySQL database field with the help of in-built CONCAT() function.The syntax is as follows −update yourTableName set yourColumnName = CONCAT(yourColumnName, ’AppendValue’);To understand the above concept, let us create a table. The query to create a table −mysql> create table AppendingDataDemo −> ... Read More

8085 program to access and exchange the content of Flag register with register B

Jennifer Nicholas

Jennifer Nicholas

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

976 Views

In this program we will see how to exchange the content of Flat register with register B.Problem StatementWrite 8085 Assembly language program to swap the content of flag register and the register B.DiscussionAs we cannot access the flag register content directly, we have to take the help of stack. By ... Read More

8085 program to find the sum of a series

Jennifer Nicholas

Jennifer Nicholas

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

4K+ Views

In this program we will see how to add a blocks of data using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to add N 1-byte numbers. The value of N is provided.DiscussionIn this problem we are using location 8000H to hold the length of the block. The main block is ... Read More

8085 program to convert binary numbers to gray

Jennifer Nicholas

Jennifer Nicholas

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

2K+ Views

In this program we will see how to find the gray code from an 8-bit number.Problem StatementWrite 8085 Assembly language program to convert an 8-bit number stored at 8000H to its equivalent gray code. The result will be stored at 8050H.DiscussionIn this program we are converting binary to gray code. ... Read More

How to compare two NSDates in iPhone/iOS?

Jennifer Nicholas

Jennifer Nicholas

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

168 Views

In this article we'll see how to compare two NSDates in swift. First of all we'll need to create two NSDates.We'll do it in playground instead of simulator this time.First Let's create two different dates.let dateOne = NSDateComponents() dateOne.day = 5 dateOne.month = 6 dateOne.year = 1993 let dateTwo = ... Read More

8085 program to exchange a block of bytes in memory

Jennifer Nicholas

Jennifer Nicholas

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

3K+ Views

In this program we will see how to exchange a block of bytes using 8085.Problem StatementWrite 8085 Assembly language program to exchange a block of data, where block size is given.DiscussionThe data are stored at location 8010H to 8019H and 9010H to 9019H. The location 8000H is holding the number ... Read More

8085 Program to perform bubble sort in ascending order

Jennifer Nicholas

Jennifer Nicholas

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

21K+ Views

In this program we will see how to sort a block of bytes in ascending order using bubble sorting technique.Problem StatementWrite8085 Assembly language program to sort numbers in ascending order where n number of numbers are stored in consecutive memory locations starting from 8041H and the value of n is ... Read More

Advertisements