In this article, you learn about delegates and creating delegates. First of all, What’s a delegate?Delegate is a simple term that refers to communication between objects. It is a simple way of connecting objects and communication between them.How does delegate work?A delegate is created with help of protocol. A protocol is declared in class, inside which some event will happen, that should notify other classes. In protocol we write the declaration of function and it is defined inside the calling class.How to create a delegate?We’ll do this with help of an example project.Steps to perform −Create a class, name it ... Read More
In this section, we will see the basic architecture of the Motorola M6800 Microprocessor, and different registers to write programs into it.To write programs we have to care about the registers and some instructions to access them during program execution. So from this diagram, we can see that there are two 8-bit Accumulators A and B, some 16-bit registers (Program Counter PC, Index Register IX, Stack Pointer SP), and 8-bit flag register CCR.Both of the Accumulators Aand B have the same prominence in the Instruction set. There are very few instructions in 6800, where the Accumulator A is used but B ... Read More
Import the following package for Calendar class in Javaimport java.util.Calendar;Firstly, create a Calendar object and display the current date and timeCalendar calendar = Calendar.getInstance(); System.out.println("Current Date and Time = " + calendar.getTime());Now, let us increment the weeks using the calendar.add() method and Calendar.WEEK_OF_YEAR constant.calendar.add(Calendar.WEEK_OF_YEAR, 2);The following is an exampleExample Live Demoimport java.util.Calendar; public class Demo { public static void main(String[] args) { Calendar calendar = Calendar.getInstance(); System.out.println("Current Date = " + calendar.getTime()); // Adding 2 weeks calendar.add(Calendar.WEEK_OF_YEAR, 2); System.out.println("Updated Date = " + calendar.getTime()); ... Read More
India today has reached the zenith of success in many fields like science and technology, literature, movies and much more. But, there are some issues that are still prevalent in the country and more prominently in the rural India.Rural India is the actual soul of the country where a maximum of its population resides yet it is also the most neglected and ignored by the Government. The major victims of the issues that are present in the rural India are the women. Rural Indian Women are facing a lot of problems.No access to educationAccording to ASER report 2014, only 1 ... Read More
We have seen the Internal structure and registers of Motorola M6800 Microprocessor. In this section we will see the addressing modes of M6800.There are six addressing modes in M6800 MPU. These modes are −Immediate Addressing ModeImplied Addressing ModeDirect Addressing ModeExtended Addressing ModeIndexed Addressing ModeRelative Addressing ModeNow Let us see some basic syntax of M6800 Assembly Language Programming.If a number is 8CH in hexadecimal, then we have to use $ sign before it. So it will be $8C. A number without $ is treated as decimal number. Similarly, an immediate data is denoted by # symbol. #50FF is a data, but ... Read More
In this section, we will see the different types of instructions of Motorola M6800 microprocessor. There are 72 different types of instructions and 197 different opcodes. So there are 51 1-Byte instruction, 103 2-Byte instruction and 43 3-Byte instruction.As we know that the Intel 8085 has 246 opcodes, though 6800 is more powerful than 8085. The Z-80 has 700 instructions but M6800 has some more advanced branching instructions.The different instruction groups are like these −Data Transfer GroupArithmetic GroupLogical GroupBranch GroupMiscellaneous InstructionsData transfer GroupIn this group, there are 14 instructions. We can find 38 opcodes for these 14 instructions. These instructions ... Read More
iOS Allows us to open some applications with some links or other ways from our app, like dialing a number when clicked on it, or writing a mail with some static body or writing a SMS. But this is limited to some applications, not every app can be opened from within an application.Specifically it is limited to apps that have a registered URL Scheme. For example if you want to open a SMS from your app, it is possible using the registered URL Scheme.Some of the applications that can be opened with URL schemes and how to open them are ... Read More
A url Scheme is a way of iOS to open some third party applications from within a app. Some of the URL schemes that are supported by facebook to open different modules of facebook app from within some other app are mentioned below.1. To open facebook profile: fb://profile 2. To open request list: fb://requests 3. To open friends list : fb://friends 4. To open notes: fb://notes 5. To open the list of notifications : fb://notifications 6. To open albums: fb://albums 7. To open feeds/ home : fb://feed 8. To open events : fb://events 9. To open a page with id: ... Read More
In Motorola M6800, there are two hardware interrupt pins. These pins are NMI and. IRQ These pins are active low input pins. The first one is non-maskable and the second one is maskable and lower priority interrupt. When the IM flag is 1, or CCR register is set, the interrupt is masked or disabled.When the Micro processor enters into some Interrupt Service Subroutine (ISS), it uses SEI instruction to mask the interrupt even if the IRQ activated. The reverse action can be performed using the CLI instruction. It can unmask the interrupt.When in the interrupt is occurred, the M6800 follows ... Read More
To create pulse effect with CSS, you can try to run the following codeExampleLive Demo .animated { background-image: url(/css/images/logo.png); background-repeat: no-repeat; background-position: left top; padding-top:95px; margin-bottom:60px; -webkit-animation-duration: 10s; animation-duration: 10s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } @-webkit-keyframes pulse { 0% { -webkit-transform: scale(1); } 50% { -webkit-transform: scale(1.1); } 100% { -webkit-transform: scale(1); } } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } .pulse { -webkit-animation-name: pulse; animation-name: pulse; } Reload page function myFunction() { location.reload(); }
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP