Arjun Thakur has Published 1025 Articles

8085 Program to Add two 8 Bit numbers

Arjun Thakur

Arjun Thakur

Updated on 07-Oct-2023 02:53:58

39K+ Views

In this program, we will see how to add two 8-bit numbers using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to add two 8-bit numbers and store the result at locations 8050H and 8051H.DiscussionTo perform this task, we are using the ADD operation of 8085 Microprocessor. When the result of ... Read More

How to append a second list to an existing list in C#?

Arjun Thakur

Arjun Thakur

Updated on 04-Oct-2023 21:27:32

37K+ Views

Use the AddRange() method to append a second list to an existing list.Here is list one −List < string > list1 = new List < string > (); list1.Add("One"); list1.Add("Two");Here is list two −List < string > list2 = new List < string > (); list2.Add("Three"); ist2.Add("Four");Now let ... Read More

How to count the number of tables in a MySQL database?

Arjun Thakur

Arjun Thakur

Updated on 14-Sep-2023 15:39:55

39K+ Views

To count the total number of tables, use the concept of count(*) with table_schema. First, to check how many tables are present in our database "business", we need to use the 'show' command. mysql> show tables; The following is the output that displays all the tables in the database "business". ... Read More

How to use datetime input type in HTML?

Arjun Thakur

Arjun Thakur

Updated on 14-Sep-2023 02:22:10

29K+ Views

The datetime input type is used in HTML using the . Using this, allow the users to select date and time. A date time picker popup is visible whenever input field is clicked.Note − The input type datetime is not supported in Firefox and Internet Explorer. It works on Google ... Read More

How to get the next auto-increment id in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 14-Sep-2023 01:25:33

34K+ Views

MySQL has the AUTO_INCREMENT keyword to perform auto-increment. The starting value for AUTO_INCREMENT is 1, which is the default. It will get increment by 1 for each new record. To get the next auto increment id in MySQL, we can use the function last_insert_id() from MySQL or auto_increment with SELECT. ... Read More

Retrieve an element from ArrayList in Java

Arjun Thakur

Arjun Thakur

Updated on 13-Sep-2023 15:42:52

27K+ Views

An element can be retrieved from the ArrayList in Java by using the java.util.ArrayList.get() method. This method has a single parameter i.e. the index of the element that is returned.A program that demonstrates this is given as followsExample Live Demoimport java.util.ArrayList; import java.util.List; public class Demo { public ... Read More

Flags register in 8085 Microprocessor

Arjun Thakur

Arjun Thakur

Updated on 10-Sep-2023 08:26:37

44K+ Views

In 8085 microprocessor, the flags register can have a total of eight flags. Thus a flag can be represented by 1 bit of information. But only five flags are implemented in 8085. And they are:Carry flag (Cy), Auxiliary carry flag (AC), Sign flag (S), Parity flag (P), andZero flag (Z).The ... Read More

What is a Parity Bit?

Arjun Thakur

Arjun Thakur

Updated on 06-Sep-2023 22:03:09

52K+ Views

A parity bit is a check bit, which is added to a block of data for error detection purposes. It is used to validate the integrity of the data. The value of the parity bit is assigned either 0 or 1 that makes the number of 1s in the message ... Read More

Flag register of 8086 microprocessor

Arjun Thakur

Arjun Thakur

Updated on 06-Sep-2023 13:34:45

51K+ Views

The flag register is one of the special purpose register. The flag bits are changed to 0 or 1 depending upon the value of result after arithmetic or logical operations.8086 has 16-bit flag register, and there are 9 valid flag bits. The format of flag register is like below.BitsD15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0Flags    ODITSZ AC P CY We can ... Read More

Convert Infix to Postfix Expression

Arjun Thakur

Arjun Thakur

Updated on 02-Sep-2023 01:50:33

72K+ Views

Infix expressions are readable and solvable by humans. We can easily distinguish the order of operators, and also can use the parenthesis to solve that part first during solving mathematical expressions. The computer cannot differentiate the operators and parenthesis easily, that’s why postfix conversion is needed.To convert infix expression to ... Read More

Advertisements