Wednesday 22 February 2017

Rajkummar Rao's 'Newton' wins Art Cinema honour

Rajkummar Rao's 'Newton' wins Art Cinema honour at Berlinale Rajkummar Rao and Anjali Patil starrer Political satire “Newton” on 19 February 2017 won the International Federation of Art Cinemas (CICAE) award in its Forum segment. The film had its world premiere at the 67th Berlin Film Festival. Newton was chosen for the award from the total 43 films which were screened in the segment at the festival. On behalf of the director, the award was received by curator Meenakshi Shedde. Directed by Amit Masurkar, the film received a standing ovation at the festival, with a long and engaging Q and A post the screening. The film Newton was labelled as a wonderful and exceptional film by the jury, consisting of Spanish film composer Pedro Barbadillo, French producer Rainer Wothe and the Croatian director and Pula Film Festival producer Tanja Milicic. Statement of the jury is “This exceptional film within the rich and varied Forum selection deals with the various issues of democracy and fight for it during the elections in India. "It's modular portrayal of Indian culture, the dark humour and ironic approach as well as the positive use of typical cliches in Indian society gives 'NEWTON' a unique form and style which will delight audiences in art house cinemas all over the world.” Film Newton The film revolves around the story of a rookie clerk on election duty in a conflict-ridden jungle of central India. He tries his best to conduct a free and fair voting. Amit Masurkar, the director of the film, had earlier said that the movie will be released in mid-2017.

GST Council approved bill to reimburse revenue loss to States

GST Council approved bill to reimburse revenue loss to States at Berlinale Rajkummar Rao and Anjali Patil starrer Political satire “Newton” on 19 February 2017 won the International Federation of Art Cinemas (CICAE) award in its Forum segment. The film had its world premiere at the 67th Berlin Film Festival. Newton was chosen for the award from the total 43 films which were screened in the segment at the festival. On behalf of the director, the award was received by curator Meenakshi Shedde. Directed by Amit Masurkar, the film received a standing ovation at the festival, with a long and engaging Q and A post the screening. The film Newton was labelled as a wonderful and exceptional film by the jury, consisting of Spanish film composer Pedro Barbadillo, French producer Rainer Wothe and the Croatian director and Pula Film Festival producer Tanja Milicic. Statement of the jury is “This exceptional film within the rich and varied Forum selection deals with the various issues of democracy and fight for it during the elections in India. "It's modular portrayal of Indian culture, the dark humour and ironic approach as well as the positive use of typical cliches in Indian society gives 'NEWTON' a unique form and style which will delight audiences in art house cinemas all over the world.” Film Newton The film revolves around the story of a rookie clerk on election duty in a conflict-ridden jungle of central India. He tries his best to conduct a free and fair voting. Amit Masurkar, the director of the film, had earlier said that the movie will be released in mid-2017.

CURRENT AFFAIRS QUIZ:::: PAGE-2

1. The World Day of Social Justice was observed globally on 20 February 2017 with the theme a) A Just Transition - environmentally sustainable economies and societies b) Building a solid and interactive bridge in the world to accelerate ending FGM by 2030 c) Preventing conflict and sustaining peace through decent work d) Challenges and Achievements of the Durban Declaration and Programme of Action – 15 years after

2. ISRO recently tested the indigenously developed Cryogenic Upper Stage (CUS) for use in this rocket a) GSLV MkII b) GSLV MkIII c) GSLV MkIV d) PSLV C38

3. South Asian Speakers Summit on achieving Sustainable Development Goals was held in a) Hyderabad b) Indore c) Ahmedabad d) New Delhi

4. The ICGS AYUSH was commissioned at a) Kochi b) Vishakapatnam c) Mumbai d) Mangalore

5. It is this State Government announced a Cloud Seeding Project for 2017. a) Telangana b) Karnataka c) Maharashtra d) Madhya Pradesh

6. It is in this African country the Vice President Hamid Ansari paid floral tributes at the Kigali genocide memorial recently. a) Rwanda b) Burundi c) Nigeria d) Kenya

7. The legislature of this country passed the landmark Hindu marriage bill recently. a) Bangladesh b) Sri Lanka c) Iran d) Pakistan

8. Name the state that in February 2017 allocated lands for the construction of nine thematic cities in the new capital. a) Telangana b) Uttarakhand c) Andhra Pradesh d) Chhattisgarh

9. Name the states that on 20 February 2017 celebrated its statehood day. a) Arunachal Pradesh and Mizoram b) Nagaland and Mizoram c) Arunachal Pradesh and Nagaland d) Assam and Goa

10. Name the person who was elected as the leader of the new leader of the Ruling Naga People's Front (NPF) Legislature Party. a) Shurhozelie Liezitsu b) TR Zeliang c) Neiphiu Rio d) Lal Thanhawla

11. Nagaland Chief Minister TR Zeliang resigned as Chief Minister of the state in February 2017. Name the party to which he belongs. a) Indian National Congress b) Kohima Democratic Front c) Bharatiya Janata Party d) Naga People's Front

12. Name the 39th Chief Justice of India who passed away recently. a) Altamas Kabir b) M. Patanjali Sastri c) Mehr Chand Mahajan d) Bijan Kumar Mukherjea

13. The Tourism Department of which state recently prepared a Tirath Darshan scheme under which senior citizens above 60 years of age would be able to visit various religious places? a) Haryana b) Uttar Pradesh c) Gujarat d) Rajasthan

14. Who won the 2017 Rotterdam Open? a) Novak Djokovic b) David Goffin c) Martin Klizan d) Jo-Wilfried Tsonga

15. Barren Island, India's only live volcano, is located in which of the following states/UTs? a) Lakshadweep b) Daman and Diu c) Andaman and Nicobar Islands d) None of the above

ANSWER 1. (c) Preventing conflict and sustaining peace through decent work
2. (b) GSLV MkIII
3.(b) Indore
4. (a) Kochi
5. (c) Maharashtra
6. (a) Rwanda
7. (d) Pakistan
8. (c) Andhra Pradesh
9. (a) Arunachal Pradesh and Mizoram
10. (a) Shurhozelie Liezitsu
11. (d) Naga People's Front
12. (a) Altamas Kabir
13. (a) Haryana
14. (d) Jo-Wilfried Tsonga
15. (c) Andaman and Nicobar Islands

CURRENT AFFAIRS QUIZ 2017:::PAGE1

1. What was the theme for the International Mother Language Day that was observed across the world on 21 February 2017? a) Inclusive Education through and with Language - Language Matters b) Quality education, language(s) of instruction and learning outcomes c) Towards Sustainable Futures through Multilingual Education d) Local languages for Global Citizenship: Spotlight on Science

2. Name the resource kit that was launched by the union health ministry as part of the Rashtriya Kishor Swasthya Karyakram (RKSK) program for adolescents. a) Yuvaa b) Saathiya c) Yuva-Saathi d) None of the above

3. Reserve Bank has enhanced the cash withdrawal limit from Savings Bank Account to a) Rs 24000 b) Rs 30000 c) Rs 44000 d) Rs 50000

4. It is with this county India agreed to extend the agreement on reducing the risk of accidents relating to nuclear weapons for five years. a) Bangladesh b) Pakistan c) Sri Lanka d) Afghanistan

5. The Union Ministries of Social Justice and Empowerment and Textiles signed a tripartite agreement with this agency for the development of artisans. a) National Scheduled Castes Finance and Development Corporation b) National Scheduled Tribes Finance and Development Corporation c) National Backward Classes Finance and Development Corporation d) National Minorities Development and Finance Corporation

6. This public sector bank launched five new products to mark its 75th foundation day recently. a) Punjab National Bank b) Allahabad Bank c) Oriental Bank of Commerce d) State Bank of India

7. The Women’s World Women's Chess Championship 2017 is being held in a) Tehran b) London c) Beijing d) New Delhi

8. Which state recently passed the Aadhaar (Targeted Delivery of Financial and Other Subsidies, Benefits and Services) Bill, 2017? a) Rajasthan b) Punjab c) Madhya Pradesh d) Gujarat

9. Scientists recently claimed to discover a new continent named Zealandia. How much portion of it is submerged beneath Pacific Ocean? a) 93 percent b) 98 percent c) 94 percent d) 84 percent

10. Which of the following US Presidents topped the Presidential Historians Survey 2017? a) Barack Obama b) Abraham Lincoln c) George Washington d) Franklin D. Roosevelt

11. Who of the following recently took over as the Chairman of the Tata Sons and Tata Consultancy Services? a) Natarajan Chandrasekaran b) Ishaat Hussain c) Rajesh Gopinathan d) None of the above

12. Name the Rajkumar Rao starrer film that won Art Cinema honour at 67th Berlin Film Festival a) City Lights b) Aligarh c) Newton d) Shahid

13. Name the state that in third week of February 2017 announced a financial package of Rs 2247 crore for farmers who have lost their crops due to drought. a) Telangana b) Tamil Nadu c) Karnataka d) Bihar

14. Name the Pakistani all-rounder who recently announced his retirement from international cricket. a) Ahmed Shehzad b) Shahid Afridi c) Saeed Anwar d) Misbah-ul-Haq

15. India-Rwanda on 20 February 2017 signed three agreements including innovation and aviation. Consider the following statements in context to the agreements I. The agreements were inked during Prime Minister Narendra Modi’s visit to Rwanda. II. The two nations agreed to establish a bilateral air service between them. III. India will establish an Entrepreneurship Development Centre in Rwanda. Which is/are correct? a) Only I and II b) Only I and III c) Only II and III d) I, II and III

ANSWER 1. (c) Towards Sustainable Futures through Multilingual Education
2. (b) Saathiya
3. (d) Rs 50000
4.(b) Pakistan
5. (a) National Scheduled Castes Finance and Development Corporation
6. (c) Oriental Bank of Commerce 7. (a) Tehran
8. (d) Gujarat
9. (d) 94 percent
10. (b) Abraham Lincoln
11. (a) Natarajan Chandrasekaran 12. (c) Newton
13. (b) Tamil Nadu
14. (b) Shahid Afridi
15. (c) Only II and III

Friday 17 February 2017

ASP.NET PROGRAM

ASP.NET PROGRAM

1»»Arraylist RadioButtonList program

<!-- Data binding to array list of radio buttons --> <script runat="server"> Sub Page_Load if Not Page.IsPostBack then dim mycountries=New ArrayList mycountries.Add("Norway") mycountries.Add("Sweden") mycountries.Add("France") mycountries.Add("Italy") mycountries.TrimToSize() mycountries.Sort() rb.DataSource=mycountries rb.DataBind() end if end sub sub displayMessage(s as Object,e As EventArgs) lbl1.text="Your favorite country is: " & rb.SelectedItem.Text end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:RadioButtonList id="rb" runat="server" AutoPostBack="True" onSelectedIndexChanged="displayMessage" /> <p><asp:label id="lbl1" runat="server" /></p> </form> </body> </html>

2>> Calender program

<!-- Web Form displaying calendar from server --> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Calendar runat="server" /> </form> </body> </html>

3>> Checkbox program

<!-- Using check box to execute script on server --> <script runat="server"> Sub Check(sender As Object, e As EventArgs) if check1.Checked then work.Text=home.Text else work.Text="" end if End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <p>Home Phone: <asp:TextBox id="home" runat="server" /> <br> Work Phone: <asp:TextBox id="work" runat="server" /> <asp:CheckBox id="check1" Text="Same as home phone" TextAlign="Right" AutoPostBack="True" OnCheckedChanged="Check" runat="server" /> </p> </form> </body> </html>

4>> Checkbox list program

<!-- Checkbox list to send information to the server --> <script runat="server"> Sub Check(sender As Object, e As EventArgs) dim i mess.Text="<p>Selected Item(s):</p>" for i=0 to check1.Items.Count-1 if check1.Items(i).Selected then mess.Text+=check1.Items(i).Text + "<br>" end if next End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:CheckBoxList id="check1" AutoPostBack="True" TextAlign="Right" OnSelectedIndexChanged="Check" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:CheckBoxList> <br> <asp:label id="mess" runat="server"/> </form> </body> </html>

5>> Camparevalidator program

<!-- Checkbox list to send information to the server --> <script runat="server"> Sub Check(sender As Object, e As EventArgs) dim i mess.Text="<p>Selected Item(s):</p>" for i=0 to check1.Items.Count-1 if check1.Items(i).Selected then mess.Text+=check1.Items(i).Text + "<br>" end if next End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:CheckBoxList id="check1" AutoPostBack="True" TextAlign="Right" OnSelectedIndexChanged="Check" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:CheckBoxList> <br> <asp:label id="mess" runat="server"/> </form> </body> </html>

6>>Customvalidator program
<!-- Creating a custom validator to check the username length --> <script runat="server"> Sub user(source As object,args As ServerValidateEventArgs) if len(args.Value)<8 or len(args.Value)>16 then args.IsValid=false else args.IsValid=true end if End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Label runat="server" Text="Enter a username: " /> <asp:TextBox id="txt1" runat="server" /> <asp:Button Text="Submit" runat="server"/> <br> <asp:Label id="mess" runat="server"/> <br> <asp:CustomValidator ControlToValidate="txt1" OnServerValidate="user" Text="A username must be between 8 and 16 characters!" runat="server"/> </form> </body> </html>

7>>Customised calendar program

<!-- Web Form displaying customisable calendar from server --> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Calendar DayNameFormat="Full" runat="server"> <WeekendDayStyle BackColor="#fafad2" ForeColor="#ff0000" /> <DayHeaderStyle ForeColor="#0000ff" /> <TodayDayStyle BackColor="#00ff00" /> </asp:Calendar> </form> </body> </html>

8>>DataList program

<!-- Displaying datalist from server --> <%@ Import Namespace="System.Data" %> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycdcatalog=New DataSet mycdcatalog.ReadXml(MapPath("cdcatalog.xml")) cdcatalog.DataSource=mycdcatalog cdcatalog.DataBind() end if end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:DataList id="cdcatalog" gridlines="Both" runat="server"> <HeaderTemplate> My CD Catalog </HeaderTemplate> <ItemTemplate> "<%#Container.DataItem("title")%>" of <%#Container.DataItem("artist")%> - $<%#Container.DataItem("price")%> </ItemTemplate> <FooterTemplate> © Hege Refsnes </FooterTemplate> </asp:DataList> </form> </body> </html>

9>>DataList with Styles
<!-- Displaying and customising datalist from server --> <%@ Import Namespace="System.Data" %> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycdcatalog=New DataSet mycdcatalog.ReadXml(MapPath("cdcatalog.xml")) cdcatalog.DataSource=mycdcatalog cdcatalog.DataBind() end if end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:DataList id="cdcatalog" runat="server" cellpadding="2" cellspacing="2" borderstyle="inset" backcolor="#e8e8e8" width="100%" headerstyle-font-name="Verdana" headerstyle-font-size="12pt" headerstyle-horizontalalign="center" headerstyle-font-bold="True" itemstyle-backcolor="#778899" itemstyle-forecolor="#ffffff" footerstyle-font-size="9pt" footerstyle-font-italic="True"> <HeaderTemplate> My CD Catalog </HeaderTemplate> <ItemTemplate> "<%#Container.DataItem("title")%>" of <%#Container.DataItem("artist")%> - $<%#Container.DataItem("price")%> </ItemTemplate> <FooterTemplate> © Hege Refsnes </FooterTemplate> </asp:DataList> </form> </body> </html>

10>>DataBase connection---- Bind to a data list control

<!-- Connecting to Database by binding to Data List control --> <%@ Import Namespace="System.Data.OleDb" %> <script runat="server"> sub Page_Load dim dbconn,sql,dbcomm,dbread dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("/db/northwind.mdb")) dbconn.Open() sql="SELECT * FROM customers" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() customers.DataSource=dbread customers.DataBind() dbread.Close() dbconn.Close() end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:DataList id="customers" runat="server" cellpadding="2" cellspacing="2" borderstyle="inset" backcolor="#e8e8e8" width="100%" headerstyle-font-name="Verdana" headerstyle-font-size="12pt" headerstyle-horizontalalign="center" headerstyle-font-bold="True" itemstyle-backcolor="#778899" itemstyle-forecolor="#ffffff" footerstyle-font-size="9pt" footerstyle-font-italic="True"> <HeaderTemplate> Customers Table </HeaderTemplate> <ItemTemplate> <%#Container.DataItem("companyname")%> in <%#Container.DataItem("address")%>, <%#Container.DataItem("city")%> </ItemTemplate> <FooterTemplate> Source: Northwind Database </FooterTemplate> </asp:DataList> </form> </body> </html>

11>>DataBase connection---- Bind to a repeater control

<!-- connecting to a database using bind repeater control --> <%@ Import Namespace="System.Data.OleDb" %> <script runat="server"> sub Page_Load dim dbconn,sql,dbcomm,dbread dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("/db/northwind.mdb")) dbconn.Open() sql="SELECT * FROM customers" dbcomm=New OleDbCommand(sql,dbconn) dbread=dbcomm.ExecuteReader() customers.DataSource=dbread customers.DataBind() dbread.Close() dbconn.Close() end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Repeater id="customers" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr bgcolor="#b0c4de"> <th>Companyname</th> <th>Contactname</th> <th>Address</th> <th>City</th> </tr> </HeaderTemplate> <ItemTemplate> <tr bgcolor="#f0f0f0"> <td><%#Container.DataItem("companyname")%> </td> <td><%#Container.DataItem("contactname")%> </td> <td><%#Container.DataItem("address")%> </td> <td><%#Container.DataItem("city")%> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </form> </body> </html>

12>>Dropdown list program

<!-- Displaying dropdown list and sending information to server --> <script runat="server"> Sub submit(sender As Object, e As EventArgs) mess.Text="You selected " & drop1.SelectedItem.Text End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:DropDownList id="drop1" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:DropDownList> <asp:Button Text="Submit" OnClick="submit" runat="server"/> <p><asp:label id="mess" runat="server"/></p> </form> </body> </html>

13>>HTML ANCHOR program

<!-- Displaying dropdown list and sending information to server --> <script runat="server"> Sub submit(sender As Object, e As EventArgs) mess.Text="You selected " & drop1.SelectedItem.Text End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:DropDownList id="drop1" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:DropDownList> <asp:Button Text="Submit" OnClick="submit" runat="server"/> <p><asp:label id="mess" runat="server"/></p> </form> </body> </html>

14>>HTML button program

<script runat="server"> Sub button1(Source As Object, e As EventArgs) p1.InnerHtml="You clicked the blue button!" End Sub Sub button2(Source As Object, e As EventArgs) p1.InnerHtml="You clicked the pink button!" End Sub </script> <!-- Simple buttons and related event executed at server using ASP.net --> <!DOCTYPE html> <html> <body> <form runat="server"> <button id="b1" OnServerClick="button1" style="background-color:#e6e6fa; height:25;width:100" runat="server"> Blue button! </button> <button id="b2" OnServerClick="button2" style="background-color:#fff0f5; height:25;width:100" runat="server"> Pink button! </button> <p id="p1" runat="server" /> </form> </body> </html>

15>>HTML image program

<!-- Simple ASP.net code to display an image in HTML page from server --> <script runat="server"> Sub Page_Load(Sender As Object,E As EventArgs) image1.Src="smiley.gif" image1.Alt="Smiley" image1.Border="3" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <img id="image1" runat="server" /> </form> </body> </html>

16>>HTML image2

<!-- ASP.net code to select an image and display in HTML page from server --> <script runat="server"> Sub choose_image(Sender As Object, e As EventArgs) image1.Src = select1.Value End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <select id="select1" runat="server"> <option value="smiley.gif">Smiley</option> <option value="angry.gif">Angry</option> <option value="stickman.gif">Stickman</option> </select> <input type="submit" runat="server" value="Display image" OnServerClick="choose_image"> <br><br> <img id="image1" src="smiley.gif" runat="server" width="32" height="32" /> </form> </body> </html>

17>>HTML Image Button program

<!-- Using input button send a text to the server and receive response in HTML page --> <script runat="server"> Sub submit(sender As Object, e as EventArgs) if name.value<>"" then p1.InnerHtml="Welcome " & name.value & "!" end if End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> Enter your name: <input id="name" type="text" size="30" runat="server" /> <br><br> <input type="submit" value="Submit" OnServerClick="submit" runat="server" /> <p id="p1" runat="server" /> </form> </body> </html>

18>>HTML Input Check button program

<!-- Using checkbox to send request to server and display result in html page --> <script runat="server"> Sub submit(Source As Object, e As EventArgs) if red.Checked=True then p1.InnerHtml="You prefer red!" else p1.InnerHtml="You prefer blue!" end if red.checked=false blue.checked=false End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> What color do you prefer? <br> <input id="red" type="checkbox" runat="server" /> Red <br> <input id="blue" type="checkbox" runat="server" /> Blue <br> <input type="button" value="Submit" OnServerClick="submit" runat="server"/> <p id="p1" runat="server" /> </form> </body> </html>

19>>HTML Input Image

<!-- Using checkbox to send request to server and display result in html page --> <script runat="server"> Sub submit(Source As Object, e As EventArgs) if red.Checked=True then p1.InnerHtml="You prefer red!" else p1.InnerHtml="You prefer blue!" end if red.checked=false blue.checked=false End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> What color do you prefer? <br> <input id="red" type="checkbox" runat="server" /> Red <br> <input id="blue" type="checkbox" runat="server" /> Blue <br> <input type="button" value="Submit" OnServerClick="submit" runat="server"/> <p id="p1" runat="server" /> </form> </body> </html>

20>>HTML Input RadioButton
<!-- Send input to server from selected radio button and receive response --> <script runat="server"> Sub submit(Source As Object, e As EventArgs) if r1.Checked=True then p1.InnerHtml="Your favorite color is red" else if r2.Checked=True then p1.InnerHtml="Your favorite color is green" else if r3.Checked=True then p1.InnerHtml="Your favorite color is blue" end if end if end if End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <p>Select your favorite color: <br> <input id="r1" name="col" type="radio" runat="server">Red</input> <br> <input id="r2" name="col" type="radio" runat="server">Green</input> <br> <input id="r3" name="col" type="radio" runat="server">Blue</input> <br> <input type="button" value="Submit" OnServerClick="submit" runat="server"/> <p id="p1" runat="server" /> </form> </body> </html>

21>>HTML Table

<!-- Send input to server to create dynamic tables --> <script runat="server"> Sub submit(sender As Object, e As EventArgs) Dim row,numrows,numcells,j,i row=0 numrows=cint(rows1.Value) numcells=cint(cells1.Value) for j=1 to numrows Dim r As New HtmlTableRow() row=row+1 for i=1 to numcells Dim c As New HtmlTableCell() c.Controls.Add(New LiteralControl("row " & j & ", cell " & i)) r.Cells.Add(c) next t1.Rows.Add(r) t1.Visible=true next End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <p>Table rows: <select id="rows1" runat="server"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <br>Table cells: <select id="cells1" runat="server"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <br><br> <input type="submit" value="Display Table" runat="server" OnServerClick="submit"> </p> <table id="t1" border="1" runat="server" visible="false"/> </form> </body> </html>

22>>HTML Table2

<script runat="server"> Sub submit(sender As Object, e As EventArgs) dim i,j table1.BGColor="yellow" table1.BorderColor="red" for i=0 To table1.Rows.Count-1 for j=0 To table1.Rows(i).Cells.Count-1 table1.Rows(i).Cells(j).InnerHtml="Row " & i next next End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <table id="table1" border="1" runat="server"> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr> </table> <br> <input type="button" value="Change Contents" OnServerClick="submit" runat="server"/> </form> </body> </html>

23>>HTML TEXTAREA

<!-- Using text area to send string/text to server and receive output --> <script runat="server"> Sub submit(sender As Object, e As EventArgs) p1.InnerHtml = "<b>You wrote:</b> " & textarea1.Value End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> Enter some text:<br> <textarea id="textarea1" cols="35" rows="6" runat="server" /> <input type="submit" value="Submit" OnServerClick="submit" runat="server" /> <p id="p1" runat="server" /> </form> </body> </html>

24>>HASHTABLE drop-down list

<!-- Using Hashtable drop down list to populate data --> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycountries=New Hashtable mycountries.Add("N","Norway") mycountries.Add("S","Sweden") mycountries.Add("F","France") mycountries.Add("I","Italy") dd.DataSource=mycountries dd.DataValueField="Key" dd.DataTextField="Value" dd.DataBind() end if end sub sub displayMessage(s as Object,e As EventArgs) lbl1.text="Your favorite country is: " & dd.SelectedItem.Text end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:DropDownList id="dd" runat="server" AutoPostBack="True" onSelectedIndexChanged="displayMessage" /> <p><asp:label id="lbl1" runat="server" /></p> </form> </body> </html>

25>>Hyperlink

<!-- Creating a hyperlink on an image --> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:HyperLink ImageUrl="prghub.gif" NavigateUrl="http://www.programminghub.io" Text="Visit ProgrammingHub!" Target="_blank" runat="server" /> </form> </body> </html>

26>>Label

<!-- Displaying text into a label --> <script runat="server"> Sub submit(Sender As Object, e As EventArgs) label1.Text=txt1.Text End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> Write some text: <asp:TextBox id="txt1" Width="200" runat="server" /> <asp:Button id="b1" Text="Copy to Label" OnClick="submit" runat="server" /> <p><asp:Label id="label1" runat="server" /></p> </form> </body> </html>

27>>LinkButton

<!-- Creating a link button --> <script runat="server"> Sub lblClick(sender As Object, e As EventArgs) Label1.Text="You clicked the LinkButton control" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:LinkButton Text="Click me!" OnClick="lblClick" runat="server" /> <p><asp:Label id="Label1" runat="server" /></p> </form> </body> </html>

28>>ListBox

<!-- Selecting from ListBox --> <script runat="server"> Sub submit(Sender As Object,e As EventArgs) mess.Text="You selected " & drop1.SelectedItem.Text End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:ListBox id="drop1" rows="3" runat="server"> <asp:ListItem selected="true">Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> <asp:ListItem>Item 5</asp:ListItem> <asp:ListItem>Item 6</asp:ListItem> </asp:ListBox> <asp:Button Text="Submit" OnClick="submit" runat="server" /> <p><asp:label id="mess" runat="server" /></p> </form> </body> </html>

29>>Literal

<!-- Printing a literal text from server --> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Literal Text="I love ASP. NET!" runat="server" /> </form> </body> </html>

30>>Literal2

<!-- Changing text literal value --> <script runat="server"> Sub submit(sender As Object, e As EventArgs) Literal1.Text="I love ASP.NET!" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Literal id="Literal1" Text="I love ASP!" runat="server" /> <br><br> <asp:Button Text="Change Text" OnClick="submit" runat="server" /> </form> </body> </html>

31>>Page----is PostBack event

<!-- Load page and use Page.IsPostBack event --> <script runat="server"> Sub Page_Load if Not Page.IsPostBack then lbl1.Text="The date and time is " & now() end if End Sub Sub submit(s As Object, e As EventArgs) lbl2.Text="Hello World!" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <h3><asp:label id="lbl1" runat="server" /></h3> <h3><asp:label id="lbl2" runat="server" /></h3> <asp:button text="Submit" onclick="submit" runat="server" /> </form> </body> </html>

32>>PageLoad

<!-- Load a page on server and display time and date --> <script runat="server"> Sub Page_Load lbl1.Text="The date and time is " & now() End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <h3><asp:label id="lbl1" runat="server" /></h3> </form> </body> </html>

33>>Panel

<!-- Hide and show Panel from server --> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) if check1.Checked then panel1.Visible=false else panel1.Visible=true end if End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Panel id="panel1" runat="server" BackColor="#ff0000" Height="100px" Width="100px"> Hello World! </asp:Panel> <asp:CheckBox id="check1" Text="Hide Panel control" runat="server"/> <br><br> <asp:Button Text="Reload" runat="server" /> </form> </body> </html>

34>>Repeater

<!-- Using Repeater --> <%@ Import Namespace="System.Data" %> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycdcatalog=New DataSet mycdcatalog.ReadXml(MapPath("cdcatalog.xml")) cdcatalog.DataSource=mycdcatalog cdcatalog.DataBind() end if end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Repeater id="cdcatalog" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr> <th>Title</th> <th>Artist</th> <th>Company</th> <th>Price</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td><%#Container.DataItem("title")%> </td> <td><%#Container.DataItem("artist")%> </td> <td><%#Container.DataItem("company")%> </td> <td><%#Container.DataItem("price")%> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </form> </html> </body>

35>>Table

<!-- display simple Table --> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) dim rows,cells,j,i rows=3 cells=2 For j=0 To rows-1 dim r As New TableRow() For i=0 To cells-1 dim c As New TableCell() c.Controls.Add(New LiteralControl("row " & j & ", cell " & i)) r.Cells.Add(c) Next Table1.Rows.Add(r) Next End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Table id="Table1" BorderWidth="1" GridLines="Both" runat="server" /> </form> </body> </html>

36>>textbox

<!-- read value from a text box and display --> <script runat="server"> Sub submit(sender As Object, e As EventArgs) lbl1.Text="Your name is " & txt1.Text End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> Enter your name: <asp:TextBox id="txt1" runat="server" /> <asp:Button OnClick="submit" Text="Submit" runat="server" /> <p><asp:Label id="lbl1" runat="server" /></p> </form> </body> </html>

37>>View XML/XSL

<!-- to view XML / XLS format of the file --> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Xml DocumentSource="cdcatalog.xml" TransformSource="cdcatalog.xsl" runat="server" /> </form> <p><a href="cdcatalog.xml" target="_blank">View XML file</a></p> <p><a href="cdcatalog.xsl" target="_blank">View XSL file</a></p> </body> </html>

38>>WebControl- Image

<!-- Using Image --> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Image runat="server" AlternateText="ProgrammingHub" ImageUrl="prghub.gif"/> </form> </body> </html>

39>>WebControl - Button

<!-- A simple button to send request to server to execute a script --> <script runat="server"> Sub submit(Source As Object, e As EventArgs) button1.Text="You clicked me!" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit" /> </form> </body> </html>

40>>WebControl - Button2

<!-- A simple button to send request to server to execute a script to change properties of the button --> <script runat="server"> Sub submit(Source As Object, e As EventArgs) button1.Style("background-color")="#0000ff" button1.Style("color")="#ffffff" button1.Style("width")="200px" button1.Style("cursor")="pointer" button1.Style("font-family")="verdana" button1.Style("font-weight")="bold" button1.Style("font-size")="14pt" button1.Text="You clicked me!" End Sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit" /> </form> </body> </html>

41>>XML RadioButton List

<!-- Populating data using XML in radio button list --> <%@ Import Namespace="System.Data" %> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycountries=New DataSet mycountries.ReadXml(MapPath("countries.xml")) rb.DataSource=mycountries rb.DataValueField="value" rb.DataTextField="text" rb.DataBind() end if end sub sub displayMessage(s as Object,e As EventArgs) lbl1.text="Your favorite country is: " & rb.SelectedItem.Text end sub </script> <!DOCTYPE html> <html> <body> <form runat="server"> <asp:RadioButtonList id="rb" runat="server" AutoPostBack="True" onSelectedIndexChanged="displayMessage" /> <p><asp:label id="lbl1" runat="server" /></p> </form> </body> </html>

Thursday 9 February 2017

Create a Logo with MS Publisher

Adapting a logo in Publisher may save you some time and money on logo design. Click where you want to insert a logo in the document. Click the “Design Gallery Object” icon on the Objects toolbar. Browse through the logo designs and select one that you like.

Wednesday 8 February 2017

ASSEMBLY PROGRAM::: SUBTRACTION OF TWO 8 - BIT NO.

.model small .data num1 db 22h num2 db 11h .code .startup main: mov ax,@data mov ds,ax mov al,num1 sub al,num2 .exit end

ASSEMBLY PROGRAM:: ADD TWO 8 BIT NO.

.model small .data num1 db 22h num2 db 11h .code .startup main: mov ax,@data mov ds,ax mov al,num1 add al,num2 .exit end

X86 INSTRUCTIONS:::X86 INTERRUPT

Interrupts are special routines that are defined on a per-system basis. This means that the interrupts on one system might be different from the interrupts on another system. Therefore, it is usually a bad idea to rely heavily on interrupts when you are writing code that needs to be portable. What is an Interrupt? In modern operating systems, the programmer often doesn't need to use interrupts. In Windows, for example, the programmer conducts business with the Win32 API. However, these API calls interface with the kernel, and the kernel will often trigger interrupts to perform different tasks. In older operating systems (specifically DOS), the programmer didn't have an API to use, and so they had to do all their work through interrupts. Interrupt Instruction This instruction issues the specified interrupt. For instance: Syntax 1 : int arg Calls interrupt 10 (0x0A (hex) = 10 (decimal)). Syntax 2 : int 0x0A Types of Interrupts There are 3 types of interrupts: Hardware Interrupts, Software Interrupts and Exceptions. Hardware Interrupts Hardware interrupts are triggered by hardware devices. For instance, when you type on your keyboard, the keyboard triggers a hardware interrupt. The processor stops what it is doing, and executes the code that handles keyboard input (typically reading the key you pressed into a buffer in memory). Hardware interrupts are typically asynchronous - their occurrence is unrelated to the instructions being executed at the time they are raised. Software Interrupts There are also a series of software interrupts that are usually used to transfer control to a function in the operating system kernel. Software interrupts are triggered by the instruction int. For example, the instruction "int 14h" triggers interrupt 0x14. The processor then stops the current program, and jumps to the code to handle interrupt 14. When interrupt handling is complete, the processor returns flow to the original program. Exceptions Exceptions are caused by exceptional conditions in the code which is executing, for example an attempt to divide by zero or access a protected memory area. The processor will detect this problem, and transfer control to a handler to service the exception. This handler may re-execute the offending code after changing some value (for example, the zero dividend), or if this cannot be done, the program causing the exception may be terminated.

X86 INSTRUCTIONS:::OTHER INSTRUCTION:::SYSTEM INSTRUCTIONS

These instructions were added with the Pentium II. Syntax 1 : sysenter This instruction causes the processor to enter protected system mode (supervisor mode or "kernel mode"). Syntax 2 : sysexit This instruction causes the processor to leave protected system mode, and enter user mode.

X86 INSTRUCTIONS:::OTHER INSTRUCTION:::I/O INSTRUCTIONS

The IN instruction almost always has the operands AX and DX (or EAX and EDX) associated with it. DX (src) frequently holds the port address to read, and AX (dest) receives the data from the port. In Protected Mode operating systems, the IN instruction is frequently locked, and normal users can't use it in their programs. Syntax 1 : in src, dest #GAS Syntax in dest, src #Intel syntax The OUT instruction is very similar to the IN instruction. OUT outputs data from a given register (src) to a given output port (dest). In protected mode, the OUT instruction is frequently locked so normal users can't use it. Syntax 2 : out src, dest #GAS Syntax out dest, src #Intel syntax

X86 INSTRUCTIONS:::OTHER INSTRUCTION:::FLAGS INSTRUCTIONS

While the flags register is used to report on results of executed instructions (overflow, carry, etc.), it also contains flags that affect the operation of the processor. These flags are set and cleared with special instructions. Interrupt Flag The IF flag tells a processor if it should accept hardware interrupts. It should be kept set under normal execution. In fact, in protected mode, neither of these instructions can be executed by user-level programs. Syntax 1 : sti Sets the interrupt flag. If set, the processor can accept interrupts from peripheral hardware. Syntax 2 : cli Clears the interrupt flag. Hardware interrupts cannot interrupt execution. Programs can still generate interrupts, called software interrupts, and change the flow of execution. Non-maskable interrupts (NMI) cannot be blocked using this instruction. Direction Flag The DF flag tells the processor which way to read data when using string instructions. That is, whether to decrement or increment the esi and edi registers after a movs instruction. Syntax 1 : std Sets the direction flag. Registers will decrement, reading backwards. Syntax 2 : cld Clears the direction flag. Registers will increment, reading forwards. Carry Flag The CF flag is often modified after arithmetic instructions, but it can be set or cleared manually as well. Syntax 1 : stc Sets the carry flag. Syntax 2 : clc Clears the carry flag. Syntax 3 : cmc Complements (inverts) the carry flag. Other Syntax 1 : sahf Stores the content of AH register into the lower byte of the flag register. Syntax 2 : lahf Loads the AH register with the contents of the lower byte of the flag register.

X86 INSTRUCTIONS:::OTHER INSTRUCTION:::STACK INSTRUCTIONS

Push instruction decrements the stack pointer and stores the data specified as the argument into the location pointed to by the stack pointer. Syntax 1 : push arg Pop instruction loads the data stored in the location pointed to by the stack pointer into the argument specified and then increments the stack pointer. Syntax 2 : pop arg Example : mov eax, 5 mov ebx, 6 push eax #The stack is now: [5] push ebx #The stack is now: [6] [5] /*The topmost item (which is 6) is now stored in eax. The stack is now: [5]*/ pop eax #ebx is now equal to 5. The stack is now empty. pop ebx Pushf instruction decrements the stack pointer and then loads the location pointed to by the stack pointer with the contents of the flag register. Syntax 1 : pushf Popf instruction loads the flag register with the contents of the memory location pointed to by the stack pointer and then increments the contents of the stack pointer. Syntax 2 : popf Pusha instruction pushes all the general purpose registers onto the stack in the following order: AX, CX, DX, BX, SP, BP, SI, DI. The value of SP pushed is the value before the instruction is executed. It is useful for saving state before an operation that could potential change these registers. Syntax 1 : pusha Popa instruction pops all the general purpose registers off the stack in the reverse order of PUSHA. That is, DI, SI, BP, SP, BX, DX, CX, AX. Used to restore state after a call to PUSHA. Syntax 2 : popa Pushad instruction works similarly to pusha, but pushes the 32-bit general purpose registers onto the stack instead of their 16-bit counterparts. Syntax 1 : pushad Popad instruction works similarly to popa, but pops the 32-bit general purpose registers off of the stack instead of their 16-bit counterparts. Syntax 2 : popad

X86 INSTRUCTIONS:::SHIFT AND ROTATE:::FOR A ROTATE

Rotate Instructions In a rotate instruction, the bits that slide off the end of the register are fed back into the spaces. Rotate dest to the right by src bits. Syntax 1 : ror src, dest #GAS Syntax ror dest, src #Intel syntax Rotate dest to the left by src bits. Syntax 2 : rol src, dest #GAS Syntax rol dest, src #Intel syntax Rotate With Carry Instructions Like with shifts, the rotate can use the carry bit as the "extra" bit that it shifts through. Rotate dest to the right by src bits with carry. Syntax 1 : rcr src, dest #GAS Syntax rcr dest, src #Intel syntax Rotate dest to the left by src bits with carry. Syntax 2 : rcl src, dest #GAS Syntax rcl dest, src #Intel syntax Number of arguments Unless stated, these instructions can take either one or two arguments. If only one is supplied, it is assumed to be a register or memory location and the number of bits to shift/rotate is one (this may be dependent on the assembler in use, however). shrl $1, %eax is equivalent to shrl %eax (GAS syntax).

X86 INSTRUCTIONS:::SHIFT AND ROTATE:::FOR A SHIFT

Logical Shift Instructions In a logical shift instruction (also referred to as unsigned shift), the bits that slide off the end disappear (except for the last, which goes into the carry flag), and the spaces are always filled with zeros. Logical shifts are best used with unsigned numbers. Syntax 1 : shr src, dest #GAS Syntax shr dest, src #Intel syntax Logical shift dest to the right by src bits. Syntax 2 : shl src, dest #GAS Syntax shl dest, src #Intel syntax Logical shift dest to the left by src bits. Example (GAS Syntax) : /*ax=1111.1111.0000.0000 (0xff00, unsigned 65280, signed -256)*/ movw $ff00,%ax /*ax=0001.1111.1110.0000 (0x1fe0, signed and unsigned 8160)*/ shrw $3,%ax /*(logical shifting unsigned numbers right by 3 is like integer division by 8)*/ /*ax=0011.1111.1100.0000 (0x3fc0, signed and unsigned 16320)*/ shlw $1,%ax /*(logical shifting unsigned numbers left by 1 is like multiplication by 2)*/ Arithmetic Shift Instructions In an arithmetic shift (also referred to as signed shift), like a logical shift, the bits that slide off the end disappear (except for the last, which goes into the carry flag). But in an arithmetic shift, the spaces are filled in such a way to preserve the sign of the number being slid. For this reason, arithmetic shifts are better suited for signed numbers in two's complement format. Syntax 1 : sar src, dest #GAS Syntax sar dest, src #Intel syntax Arithmetic shift dest to the right by src bits. Spaces are filled with sign bit (to maintain sign of original value), which is the original highest bit. Syntax 2 : sal src, dest #GAS Syntax sal dest, src #Intel syntax Arithmetic shift dest to the left by src bits. The bottom bits do not affect the sign, so the bottom bits are filled with zeros. This instruction is synonymous with SHL. Example (GAS Syntax) : /*ax=1111.1111.0000.0000 (0xff00, unsigned 65280, signed -256)*/ movw $ff00,%ax /*ax=1111.1100.0000.0000 (0xfc00, unsigned 64512, signed -1024)*/ salw $2,%ax /*(arithmetic shifting left by 2 is like multiplication by 4 for negative numbers, but has an impact on positives with most significant bit set (i.e. set bits shifted out))*/ /*ax=1111.1111.1110.0000 (0xffe0, unsigned 65504, signed -32)*/ sarw $5,%ax /*(arithmetic shifting right by 5 is like integer division by 32 for negative numbers)*/ Extended Shift Instructions The names of the double precision shift operations are somewhat misleading, hence they are listed as extended shift instructions on this page. They are available for use with 16- and 32-bit data entities (registers/memory locations). The src operand is always a register, the dest operand can be a register or memory location, the cnt operand is an immediate byte value or the CL register. In 64-bit mode it is possible to address 64-bit data as well. The operation performed by shld is to shift the most significant cnt bits out of dest, but instead of filling up the least significant bits with zeros, they are filled with the most significant cnt bits of src. Syntax 1 : shld cnt, src, dest #GAS Syntax shld dest, src, cnt #Intel syntax Likewise, the shrd operation shifts the least significant cnt bits out of dest, and fills up the most significant cnt bits with the least significant bits of the src operand. Syntax 2 : shrd cnt, src, dest #GAS Syntax shrd dest, src, cnt #Intel syntax Intel's nomenclature is misleading, in that the shift does not operate on double the basic operand size (i.e. specifying 32-bit operands doesn't make it a 64-bit shift): the src operand always remains unchanged. Also, Intel's manual states that the results are undefined when cnt is greater than the operand size, but at least for 32- and 64-bit data sizes it has been observed that shift operations are performed by (cnt mod n), with n being the data size. Example (GAS Syntax) : # ax=0000.0000.0000.0000 (0x0000) xorw %ax,%ax # ax=1111.1111.1111.1111 (0xffff) notw %ax # bx=0101.0101.0000.0000 movw $0x5500,%bx # bx=1111.0101.0101.0000 (0xf550), ax is still 0xffff shrdw $4,%ax,%bx # ax=1111.1111.1111.0101 (0xfff5), bx is still 0xf550 shldw $8,%bx,%ax Example : (decimal numbers are used instead of binary number to explain the concept) : # ax = 1234 5678 # bx = 8765 4321 shrd $3, %ax, %bx # ax = 1234 5678 bx = 6788 7654 # ax = 1234 5678 # bx = 8765 4321 shld $3, %ax, %bx # bx = 5432 1123 ax = 1234 5678

X86 INSTRUCTIONS::: LOGICAL INSTRUCTIONS

The instructions are of bit-wise logical instructions. Bit-wise AND Syntax : and src, dest #GAS Syntax and dest, src #Intel syntax Performs a bit-wise AND of the two operands, and stores the result in dest. Example : movl $0x1, %edx movl $0x0, %ecx andl %edx, %ecx ; here ecx would be 0 because 1 AND 0 = 0 Bit-wise OR Syntax : or src, dest #GAS Syntax or dest, src #Intel syntax Performs a bit-wise OR of the two operands, and stores the result in dest. Example : movl $0x1, %edx movl $0x0, %ecx orl %edx, %ecx ; here ecx would be 1 because 1 OR 0 = 1 Bit-wise XOR Syntax : xor src, dest #GAS Syntax xor dest, src #Intel syntax Performs a bit-wise XOR of the two operands, and stores the result in dest. Example : movl $0x1, %edx movl $0x0, %ecx xorl %edx, %ecx ; here ecx would be 1 because 1 XOR 0 = 1 Bit-wise Inversion Syntax : not arg Performs a bit-wise inversion of arg. Example : movl $0x1, %edx notl %edx /*here edx would be 0xFFFFFFFE because a bitwise NOT 0x00000001 = 0xFFFFFFFE*/

&quot;Exploring the Intersections: Insights into Exam Prep, Science, Business,Tech,Web-dev,Admin&amp;Health

काबिज नजूल : आबादी भूमि पर बने मकान को विक्रय करते समय बिक्रीनामा तैयार करने की प्रक्रिया-Occupied Nazul or populated land

काबिज नजूल अथवा आबादी भूमि पर बने मकान को विक्रय करते समय बिक्रीनामा तैयार करने की प्रक्रिया:   1. दस्तावेज इकट्ठा करना: विक्रेता और खरीदार ...