In this program we will see how to exchange a block of 10-byte data using 8085.Problem StatementWrite 8085 Assembly language program to exchange a block of data, where block size is 10.DiscussionThe data are stored at location 8010H to 8019H and 9010H to 9019H. The location 8000H is holding the number of bytes to exchange. In this case number of bytes are 10D so it will be 0AH.The logic is very simple, The HL and DE register pair is pointing the first and second data block respectively. By taking the data we are just swapping the values of each memory ... Read More
An idiom is a wise saying with an underlying meaning that packs a punch with societal principles and cultural values packed into it. An idiom is a combination of words that have a figurative meaning yet express an idea with it. It is a word or phrase that is understood differently but actually means different from what it denotes.The dictionary meaning of the words or phrases used in idioms is different from the contextual meaning that is denoted by idioms when used in speech. The meaning is contextual, informal and culturally understood.There are thousands of idioms used in the English ... Read More
The ftp_nlist() function returns a list of files in the specified directory on the FTP server.Syntaxftp_nlist(con,dir);Parameterscon − The FTP connectiondir − The directory to be listedReturnThe ftp_nlist() function returns an array of file names on success or FALSE on failure.ExampleThe following is an example wherein we are getting the list of files in the current directory −
Firstly, create a Formatter and a Calendar object.Formatter f = new Formatter(); Calendar c = Calendar.getInstance();To display complete date and time information use the ‘c’ conversion character. However, to display it in lowercase, use ‘tc’ −f = new Formatter(); System.out.println(f.format("Date and Time (lowercase): %tc", cal));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 cal = Calendar.getInstance(); System.out.println("Current date and time: "+cal.getTime()); ... Read More
The subList of a LinkedList can be obtained using the java.util.LinkedList.subList(). This method takes two parameters i.e. the start index for the sub-list(inclusive) and the end index for the sub-list(exclusive) from the required LinkedList. If the start index and the end index are the same, then an empty sub-list is returned.A program that demonstrates this is given as follows −Example Live Demoimport java.util.LinkedList; import java.util.List; public class Demo { public static void main(String[] args) { LinkedList l = new LinkedList(); l.add("John"); ... Read More
In this program we will see how to search an element in a block of bytes using 8085.Problem StatementWrite 8085 Assembly language program to search a key value in a block of data using linear search technique.DiscussionIn this program the data are stored at location 8002H to 8007H. The 8000H is containing the size of the block, and 8001H is holding the key value to search.After executing this program, it will return the address of the data where the item is found and store the address at location 9000H and9001H. If the item is not found, it will return FFFFH.If ... Read More
Any conference or fest in a college is a type of event which requires a lot of pre-planning and then only one can make it a huge success. In order to get some sort of praise, the organizers of the conference have to know everything in great detail before getting into the actual celebration.Check Out The Steps1. Participants In Conference: Know which delegates from which part of the country will be a part of the conference. Will there be any research scholars, teachers, students or any other important guests?2. Invite the Conference Participants: After noting the names and designations of ... Read More
Content writing has a very wide scope in India, thus, its future is very bright. The causes of this bright future may be attributed to the use of this content is not only newspapers and magazines but also in social media vis-a-vis research papers.Domains In Content Writing with Good PotentialSEO: SEO refers to Search Engine Optimisation and a person who is involved in such a domain can earn a lot in this field. This content writer has a lot of demand in the present times too, so he will definitely be in demand in future.Fashion: Fashion bloggers may or may ... Read More
The ftp_pasv() function turns the passive mode on or off.Syntaxftp_pasv(con, pasv)Parameterscon − The FTP connectionpasv − Specifies the passive mode. The following are the possible values −TRUE (passive mode on)FALSE (passive mode off)ReturnThe ftp_pasv() function returns TRUE on success or FALSE on failureExampleThe following is an example −
The method removeExtension() is used to strip a filename of its extension after the last dot. This method requires a single parameter i.e. the file name and it returns the file name without its extension.A program that demonstrates this is given as follows −Example Live Demoimport java.io.File; public class Demo { public static String removeExtension(String fname) { int pos = fname.lastIndexOf('.'); if(pos > -1) return fname.substring(0, pos); else return fname; } public static void main(String[] args) { System.out.println(removeExtension("c:\JavaProgram\demo1.txt")); ... Read More