Convert 8-Bit Binary to BCD in 8085

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

12K+ Views

In this program we will see how to convert binary numbers to its BCD equivalent.Problem StatementA binary number is store dat location 800H. Convert the number into its BCD equivalent and store it to the memory location 8050H.DiscussionHere we are taking a number from the memory, and initializing it as a counter. Now in each step of this counter we are incrementing the number by 1, and adjust the decimal value. By this process we are finding the BCD value of binary number or hexadecimal number.We can use INR instruction to increment the counter in this case but this instruction ... Read More

Use ViewStub in Android

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

599 Views

Before getting into example, we should know what is view stub in android. It is a zero-sized lazy inflate view. it going to inflate at runtime. Using inflate() method, it going to inflate at runtime and append to window manager or view group. using setVisibility(int). we can show and hide view stub in android.This example demonstrates how to use view stub 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.       ... Read More

Show Slide Down to TextView in Android

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

560 Views

This example demonstrate about How to show Slide down to textview 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, text view is going to scroll down to particular position.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.TextView; public class MainActivity extends AppCompatActivity {    @Override    protected void onCreate(Bundle savedInstanceState) {     ... Read More

FTP Quit Function in PHP

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

109 Views

The ftp_quit() function is an alias to ftp_close(). It closes an FTP connection.Syntaxftp_quit(con);Parameterscon − The connection to close.ReturnThe ftp_quit() function returns TRUE on success or FALSE on failureExampleThe following is an example that login to a connection works in it to change the directory and then the connection is closed −

Determine if File or Directory Exists in Java

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

7K+ Views

The method java.io.File.exists() is used to check whether a file or a directory exists or not. This method returns true if the file or directory specified by the abstract path name exists and false if it does not exist.A program that demonstrates this is given as follows −Exampleimport java.io.File; public class Demo {    public static void main(String[] args) {       try {          File file = new File("c:/JavaProgram/demo1.txt");          file.createNewFile();          System.out.println(file.exists());       } catch(Exception e) {          e.printStackTrace();       } ... Read More

NavigableSet Class Lower Method in Java

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

105 Views

The lower() method of NavigableSet returns the greatest element strictly less than the given element i.e. 35 here −lower(35);The following is an example to implement the lower() method in Java −Example Live Demoimport java.util.NavigableSet; import java.util.TreeSet; public class Demo { public static void main(String[] args) { NavigableSet set = new TreeSet(); set.add(10); set.add(25); set.add(40); set.add(55); set.add(70); set.add(85); set.add(100); System.out.println("Returned Value = " + set.lower(35)); } }OutputReturned Value = 25

Count Registers of 8257

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

671 Views

We have four Counters, ranging from CR3-0, which consists of 16 bits each. At the time when the CR becomes access to the processor which is 16-bits wide, the Least Significant and the Most Significant Byte of the register are accessed in an alternate manner, which starts with the Least Significant Byte. Also, the M/L* flip-flop helps here. The information about the number of bytes which are to be transferred using DMA are contained in the Counter Registers, which is decremented by 1 for every byte in the DMA data transfer. When the Counter Register becomes 0, the last DMA ... Read More

8085 Program to Check for Palindrome

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

5K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will convert ASCII to binary values.Problem StatementWrite 8085 Assembly language program to check whether a bit pattern is palindrome or not.DiscussionIn this program we are taking the number from location 8000H. The program will return 00H if the number is not palindrome, otherwise it will return FFH.Let the Input is 18H so the binary value is (0001 1000) this is a palindrome. The number 52H(0101 0010) it is not a palindrome.In this problem we are taking the first number into accumulator, then shifting it to the left. When ... Read More

Difference Between Assonance and Consonance

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

729 Views

All assonance, consonance and even the literary device of alliteration are related to one another. They are used to denote the idea of repetition. Let us look at the definitions of assonance and consonance for a better understanding.ConsonanceConsonance is defined as the repetitive sounds produced by consonants within a sentence or phrase. It has an emphasis on the final consonant letters or sound. This repetition often takes place in quick successions, such as in “dapple dawn drawn " in Gerald Manley Hopkins famous curtailed sonnet named as "Pied Beauty". But if consonance is related to repetition in terms of consonants, ... Read More

Control Register of 8257

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

3K+ Views

The processor, in active state writes to the Control register of 8257 to configure its working purpose. To find out the status of 8257, the processor reads status register of the processor. The control register is of length 8-bits which is only read by the processor but not read. It is only selected when CS* is 0, A3-0 is 1000, and IOW* is 0.Intel calls the control register 8257 normally the mode set register by as it sets the mode of operation of 8257.AULD1 = Enable auto load0 = Disable auto loadTCS1 = Stop DMA transfer if TC reached0 = ... Read More

Advertisements