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

710 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

8085 Program to Compute LCM

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

3K+ Views

Now let us see a program of Intel 8085 Microprocessor. This program will find the LCM of two8-bit numbers.Problem StatementWrite 8085 Assembly language program to find LCM of two 8-bit numbers stored at location8000H and 8001HDiscussionIn this program we are reading the data from 8000H and 8001H. By loading the number, we are storing it at C register, and clear the B register. The second number is loaded into Accumulator. Set DE as the 2's complement of BCregister. This DE is used to subtract BC from HL pair.The method is like this:let us say the numbers are 25 and 15. ... Read More

Make a Countdown Timer in Android

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

3K+ Views

Before getting into an example, we should know what is a countdown timer in android. Count down timer as simple as we see in watches and mobile phones. we can set count down time after completion of time it will stop and get 0 values.There are four methods are available to use countdown timer as shown below -onTick(long millisUntilFinished ) - In this method we have to pass countdown mill seconds after done countdown it will stop Ticking.onFinish() - After finish ticking, if you want to call any methods or callbacks we can do in onFinish().start() - It is used ... Read More

Android AsyncTasks Parallel Execution

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

487 Views

Before getting into the example, We should know that, What is asyncTask. AsyncTask is going to do operations/actions in background thread and update on mainthread. Here is the simple solution about Android AsyncTask Parallel Execution.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 declare two imageviews and one button, When user click on button it going to download two images from different ... Read More

Why Mangrove Roots Grow Above the Ground

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

542 Views

While walking near any lake or forest around the sea, you might have seen a different and unique feature of some trees, whose roots are not under but above the ground. They are known as Mangrove trees and they have aerial roots.Now, the reason why have roots above the land is that they are the underground root type which needs and demands more oxygen. Under the ground, the soil is not able to support or provide enough oxygen to the roots and therefore this root system outgrows aerial roots which grow vertically up to the fresh air above the soil.Read More

Parsing and Formatting a Byte Array into Decimal in Java

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

2K+ Views

Set a BigInteger object.BigInteger one;Now, create a ByteArray −byte byteArr[] = new byte[] { 0x1, 0x00, 0x00 }; one = new BigInteger(byteArr);For Decimal, we have used toString() method without any parameter value.String strResult = one.toString();The following is an example −Example Live Demoimport java.math.*; public class Demo { public static void main(String[] args) { BigInteger one; // ByteArray byte byteArr[] = new byte[] { 0x1, 0x00, 0x00 }; one = new BigInteger(byteArr); // Decimal String strResult = one.toString(); System.out.println("ByteArray to Decimal = "+strResult); } }OutputByteArray to Decimal = 65536

Use Subset Method of Java NavigableSet Class

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

164 Views

Use the subset() method to get elements from a limit. At first, create NavigableSet and add elements −NavigableSet set = new TreeSet(); set.add(10); set.add(25); set.add(40); set.add(55); set.add(70); set.add(85);Now, use the subset() method −set.subSet(40, 85)The following is an example to implement subset() method of Java NaviagbleSet class −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.subSet(40, 85)); } }OutputReturned Value = [40, 55, 70]

Status Register of 8257

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

789 Views

The status register is of length 8-bits wide. The processor can only read but not write and it is only selected when CS* is 0, A3-0 is 1000, and IOR* is 0.About the present state of 8257 the information about the status is provided. The five blocks are important others are marked 0 since they are not in use.UD1 = Update in progress0 = Update not in progressTCn1 = TC reached for Channel n (n = 0–3)0 = TC not yet reached for Channel nFig: Interpretation of the contents of the status registerThe read operation of the status register is ... Read More

Advertisements