Chandu yadav has Published 1163 Articles

8085 program to show masking of lower and higher nibbles of 8-bit number

Chandu yadav

Chandu yadav

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

3K+ Views

In this program we will see how to lower and upper nibbles are masked in 8085.Problem StatementWrite 8085 Assembly language program to mask the upper and lower nibble of an 8-bit number. The number is stored at location 8000H. Lower and Upper nibbles will be stored at location 8001H and ... Read More

Add DATE and TIME fields to get DATETIME field in MySQL?

Chandu yadav

Chandu yadav

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

952 Views

You can use CONCAT() function to set date and time fields to get DATETIME field.Let us create a demo tablemysql> create table getDateTimeFieldsDemo -> ( -> ShippingDate date, -> ShippingTime time, -> Shippingdatetime datetime -> ... Read More

C++ Program to Find kth Largest Element in a Sequence

Chandu yadav

Chandu yadav

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

208 Views

In this program, we need to extract the Kth largest element from a sequence. the time complexity of this technique can be improved by approaching the problem using max-heap. The time complexity of this program is O(n + k*log(n)).AlgorithmBegin    Send the max of the heap to the end of ... Read More

8085 Program to perform sorting using selection sort

Chandu yadav

Chandu yadav

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

2K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement:Write 8085 Assembly language program to sort a given sequence using selection sort in ascending order. The numbers are stored at 8001H onwards. 8000H ... Read More

Command Line and Variable Arguments in Python?

Chandu yadav

Chandu yadav

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

481 Views

Command Line ArgumentsCommand line arguments are input parameters which allow user to enable programs to act in a certain way like- to output additional information, or to read data from a specified source or to interpret the data in a desired format.Python Command Line ArgumentsPython provides many options to read ... Read More

Interface 8255 with 8085 microprocessor for addition

Chandu yadav

Chandu yadav

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

1K+ Views

In this program we will see how to perform addition by using ports to take data and send the result into the port.Problem StatementWrite 8085 Assembly language program for interfacing between 8085 and 8255. Here Port A and Port B are holding two values, take the numbers from port A ... Read More

How to find exact Array Match with values in different order using MongoDB?

Chandu yadav

Chandu yadav

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

367 Views

To find exact array match with values in different order, you can use $all operator. Let us create a collection with documents. Following is the query>db.exactMatchArrayDemo.insertOne({"StudentName":"David", "StudentAge":22, "StudentGameScores":[45, 78, 98]}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9c94702d6669774125246c") } >db.exactMatchArrayDemo.insertOne({"StudentName":"Chris", "StudentAge":23, "StudentGameScores":[45, 78]}); {    "acknowledged" : true,   ... Read More

Addressing modes in 8086 microprocessor

Chandu yadav

Chandu yadav

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

2K+ Views

In this section we will see the addressing modes of Intel 8086 microprocessor.There are eight addressing modes in 8086 MPU. These modes are:Immediate Addressing ModeRegister Addressing ModeDirect Addressing ModeRegister Indirect Addressing ModeBased Addressing ModeIndexed Addressing ModeBased-Index Addressing ModeBased-Index with displacement addressing modeImmediate AddressingThe addressing mode in which the data operand ... Read More

How to use Action in JSP?

Chandu yadav

Chandu yadav

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

835 Views

The forward action terminates the action of the current page and forwards the request to another resource such as a static page, another JSP page, or a Java Servlet.Following is the syntax of the forward action −Following table lists out the required attributes associated with the forward action −Sr.No.Attribute & ... Read More

Change collection name in MongoDB?

Chandu yadav

Chandu yadav

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

154 Views

Use use renameCollection() to change collection name in MongoDB. Following is the syntaxdb.yourOldCollectionName.renameCollection("yourNewCollectionName");Let us create a collection with documents. Following is the query> db.savingInformationDemo.insertOne({"StudentName":"Larry"}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9cb44da629b87623db1b07") } > db.savingInformationDemo.insertOne({"StudentName":"John"}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c9cb45da629b87623db1b08") } > db.savingInformationDemo.insertOne({"StudentName":"Mike"}); {   ... Read More

Advertisements