Articles on Trending Technologies

Technical articles with clear explanations and examples

Opcode Fetch (OF) machine cycle in 8085 Microprocessor

George John
George John
Updated on 30-Jul-2019 13K+ Views

The OF machine cycle are constituted by the four clock cycles shown in the figure below. Here in these four clock cycles we execute opcode fetch, decode, and complete the execution. Moreover, in the instructions of 2- and 3-byte, and also in the instructions of 1 byte like ‘MOV B, M’, only OF and decode operations gets completed in these four cycles of the clock. Hence opcode fetch is consisted by the OF machine cycle and for performing the decode operation, and in some rare cases execution. For performing some typical instructions like DCX B, the six states are provided ...

Read More

How can I make a table in MySQL called "order"?

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 5K+ Views

As you know, order is a keyword in MySQL, you cannot give table name order directly. You need to use backtick around the table name order. Backtick allow a user to consider the keyword as table or column name.The syntax is as followsCREATE TABLE `order` (    yourColumnName1 dataType,    yourColumnName2 dataType,    yourColumnName3 dataType,    .    .    .    .    N );Let us create a table. The query to create a table is as followsmysql> create table `order`    - > (    - > Id int,    - > Price int    - > ); ...

Read More

How to use remove() in android CopyOnWriteArrayList?

Samual Sam
Samual Sam
Updated on 30-Jul-2019 181 Views

Before getting into example, we should know what CopyOnWriteArrayList is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array.This example demonstrate about How to use remove() in android CopyOnWriteArrayListStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken text view to show CopyOnWriteArrayList elements.Step 3 − Add the following code to src/MainActivity.javapackage ...

Read More

Is there any need of "long" data type in C and C++?

Nishtha Thakur
Nishtha Thakur
Updated on 30-Jul-2019 242 Views

In C or C++, there are four different datatypes, that are used for integer type data. These four datatypes are short, int, long and long long. Each of these datatypes takes different memory spaces. The size varies in different architecture and different operating systems. Sometimes int takes 4-bytes or sometimes it takes 2-bytes. This also happen for the compilers. So we can use cross compilers.The cross compilers are basically a compiler, which is capable of compiling for a platform other than current platform.So if we want to compile the following code in 32bit system, and 64-bit system, it will generate ...

Read More

Memory Read (MR) machine cycle in 8085 Microprocessor

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 8K+ Views

The last three clock cycles in ‘MOV C, M’ instruction are the example for Memory Read machine cycle. Waveforms for Machine Read machine cycle is shown below: InstructionOperationAddress reg.LDA 1234HLoading W with 12H (or Z with 34H)PCPOP BPopping information from stack topSPMOV C, MLoading A from memory pointed by HLHLLDAX BLoading A from memory pointed by BCBCLDAX DLoading A from memory pointed by DEDELDA 1234HLoading A from memory Location 1234HWZ The data, which is received in a register during a Memory Read machine cycle depends on the MR machine cycle within an instruction as shown below. Where ‘r’ stands for any of ...

Read More

How to use remove() in android CopyOnWriteArraySet?

karthikeya Boyini
karthikeya Boyini
Updated on 30-Jul-2019 199 Views

Before getting into the example, we should know what CopyOnWriteArraySet is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array.This example demonstrates about How to use remove () in android CopyOnWriteArraySetStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken a text view to show CopyOnWriteArraySet elements.Step 3 − Add the following ...

Read More

Memory Write (MW) machine cycle in 8085 Microprocessor

Chandu yadav
Chandu yadav
Updated on 30-Jul-2019 3K+ Views

In the last three clock cycles the instructions ‘MVI M, 25H’ are the example for Memory Write machine cycle. We have shown the Waveforms for MW machine cycle are shown in fig below.The address which is sent out from the register pair in a Memory Write machine cycle is completely dependent on the MW machine cycle under the consideration as it is shown in the chart below.Reg. pairExampleSPWe push the information above the top of the stack in PUSH BHLWe save register C in the memory which is pointed by HL in MOV M, CBCWe save register A register in the ...

Read More

How to generate a "create table" command based on an existing table in MySQL?

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 247 Views

You can generate a create table command based on an existing table in MySQL with the help of SHOW CREATE command.The syntax is as followsSHOW CREATE TABLE yourTableName;To understand the above syntax, let us create a table. The query to create a table is as followsmysql> create table StudentInformation    - > (    - > StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    - > StudentName varchar(20),    - > StudentAge int DEFAULT 18,    - > StudentRollNo int,    - > StudentAddress varchar(200),    - > StudentMarks int,    - > StudentDOB datetime,    - > StudentAdmissionDate datetime ...

Read More

How to implementing start Foreground for a service?

Vrundesha Joshi
Vrundesha Joshi
Updated on 30-Jul-2019 2K+ Views

Before getting into example, we should know what service is in android. Service is going to do back ground operation without interact with UI and it works even after activity destroyThis example demonstrate about How to implementing start Foreground for a service.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. In the above code, we have taken text view, when user click on text view, it will start startForeground().Step 3 ...

Read More

How to use Abstract list in volley json array in android?

Ankith Reddy
Ankith Reddy
Updated on 30-Jul-2019 218 Views

This example demonstrate about How to use Abstract list in volley json array in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     In the above code, we have taken text view to show Abstract list items.Step 3 − Add the following code to src/MainActivity.javapackage com.example.myapplication; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.TextView; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringRequest; import com.android.volley.toolbox.Volley; import org.json.JSONArray; ...

Read More
Showing 59501–59510 of 61,297 articles
Advertisements