Execute 8085 Program and Check Result

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

7K+ Views

In this section we will see how to use 8085 to write a program in 8085 kit. We will also see how to debug the program and check the result after successful execution. Let us see a typical keypad structure of 8085 kit. (This keyboard pattern may vary indifferent kits of different manufacturers)The following table will show the functionalities of different control keys. There are 16alphanumeric keys (0-9, A-F) to provide data and address −KeysFunctionalitiesRESETReset the systemVCT INTVector Interrupt. It generates hardware interruptRST 7.5 via keypadSHIFTProvides second level commands to all keysGOExecute the programSIExecute in Single Step ModeEXREGExamine Register. It allows ... Read More

FTP nb_put Function in PHP

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

128 Views

The ftp_nb_put() function uploads a file to the FTP server.Syntaxftp_nb_put(con,remote_file,local_file,transfer_mode,beg_pos);Parameterscon − The FTP connectionremote_file − The file to upload tolocal_file − The local file path to uploadtransfer_mode − This is the transfer mode. The following are the possible values:- FTP_ASCII, or- FTP_BINARYbeg_pos − The position to begin the downloadingReturnThe ftp_nb_put() function returns any of the following values −FTP_FAILED − send/receive failedFTP_FINISHED − send/receive completedFTP_MOREDATA − send/receive in progressExampleThe following is an example −

Remove File Information from Filename in Java

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

152 Views

The method pathCompinent() is used to remove the file information from a filename and return only its path component. This method requires a single parameter i.e. the file name and it returns the path component only of the file name.A program that demonstrates this is given as follows −Example Live Demoimport java.io.File; public class Demo {    public static String pathComponent(String fname) {       int pos = fname.lastIndexOf(File.separator);       if (pos > -1)          return fname.substring(0, pos);       else          return fname;    }    public static void main(String[] ... Read More

Display Just Hour and Minute Using Formatter in Java

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

262 Views

Firstly, create a Formatter and a Calendar object.Formatter f = new Formatter(); Calendar c = Calendar.getInstance();To display hour using Formatter class, use the ‘l’ conversion a character −f = new Formatter(); System.out.println(f.format("Hour: %tl", c));To display minute using Formatter class, use the ‘M’ conversion character −f = new Formatter(); System.out.println(f.format("Minute: %1$tM", c));The following is an example −Example Live Demoimport java.util.Calendar; import java.util.Formatter; public class Demo { public static void main(String args[]) { Formatter f = new Formatter(); Calendar c = Calendar.getInstance(); ... Read More

8085 Program to Divide a 16-bit Number by an 8-bit Number

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

4K+ Views

In this program we will see how to divide a 16-bit number by an 8-bit numberProblem StatementWrite 8085 Assembly language program to divide a 16-bit number by an 8-bit number.DiscussionIn this program we are taking the 16-bit number from 8000H and 8001H. The 8000H is holding the lower order byte and 8001H is holding higher order byte. The8002H is holding the 8-bit numerator. After dividing the number the16-bit quotient is stored at location 8050H and 8051H. The remainderis stored at 8052H.InputAddressData......80002B8001CA800253......Flow DiagramProgramAddressHEX CodesLabelsMnemonicsCommentsF00021, 00, 80LXI H, 8000HPoint 8000HaddressF0037EMOV A, MStore the lower order byteF00423INX H   Increase the HL pair to ... Read More

Use Android Date Change Listener

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

1K+ Views

Before getting into the example, we should know what is date picker and how does it work in android. The date picker is a subclass of frame layout and it allows to select the date, month and year.This example demonstrates how to use android date change listener.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 date picker to select the date. when you select the ... Read More

Make TextView Blinking in Android

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

829 Views

This example demonstrate about how to make the textview blinking 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 one text view to show blinking animation.Step 3 − Add the following code to src/MainActivity.javapackage com.example.andy.myapplication; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.view.animation.ScaleAnimation; import android.view.animation.TranslateAnimation; import android.widget.Button; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; public class MainActivity ... Read More

FTP nb_get Function in PHP

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

99 Views

The ftp_nb_get() function downloads a file from the FTP server.Syntaxftp_nb_get(con,local_file,server_file,transfer_mode,beg_pos);Parameterscon − The FTP connectionlocal_file − The local file pathserver_file − The server file to downloadtransfer_mode − This is the transfer mode. The following are the possible values −- FTP_ASCII, or- FTP_BINARYbeg_pos − The position to begin the downloadingReturnThe ftp_nb_get() function returns any of the following values −FTP_FAILED − send/receive failedFTP_FINISHED − send/receive completedFTP_MOREDATA − send/receive in progressExampleThe following is an example:

Remove an Element from a Stack in Java

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

5K+ Views

An element can be removed from a stack using the java.util.Stack.pop() method. This method requires no parameters and it removes the element at the top of the stack. It returns the element that was removed.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Stack; public class Demo { public static void main (String args[]) { Stack stack = new Stack(); stack.push("Apple"); stack.push("Mango"); stack.push("Guava"); stack.push("Pear"); ... Read More

Need for DMA Data Transfer

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

2K+ Views

The microcomputer system basically consists of three blocksThe microprocessorThe memories of microprocessor like EPROM and RAM andThe I/O ports by which they are connected.The possible data transfers are indicated below.Between the memory and microprocessor data transfer occurs by using the LDA and STA instructions.Between microprocessor and I/O ports also data transfer occurs by the help of two instructions IN and OUT.Through DMA data transfer, data is transferred between the Input Output ports and the memory.If the data transfer which is used for reading from the memory location is 3456H and then writing to output port number is 50H which takes ... Read More

Advertisements