Difference between revisions of "Fall 2023: Microprocessors Lab"

From MKWiki
Jump to navigation Jump to search
 
(33 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
==''' Resources'''==
 
==''' Resources'''==
*  [https://www.w3schools.com/html/ HTML Tutorial]
+
*  [https://www.tutorialspoint.com/assembly_programming/index.htm Assembly Programing Tutorial from tutorialspoint.com]
* [https://www.w3schools.com/css/default.asp CSS Tutorial]
 
*  [https://www.w3schools.com/js/default.asp JavaScript Tutorial]
 
  
 
== '''Lab 0: Getting Started''' ( week of 28<sup>th</sup> August 2023 ) ==
 
== '''Lab 0: Getting Started''' ( week of 28<sup>th</sup> August 2023 ) ==
Line 20: Line 18:
 
|-
 
|-
 
| style="width: 8%"  | 1  
 
| style="width: 8%"  | 1  
| style="width: 60%" | Go through the ppt shared with your class on the whatsapp.
+
| style="width: 60%" | Go through the pdf file shared with your class on the whatsapp group, Write a summary of your learning from the Lab 0. The anticipated results of your learning could include: <br>
 +
(1) What is a statement? Write the syntax of a statement. <br>
 +
(2) What is the syntax of a variable? What is the significance of data definition directives (type)? <br>
 +
(3) Write and explain the syntax of basic instructions like MOV, XCHG, ADD, SUB, INC, DEC, NEG. <br>
 +
(4) What is the structure of an Assembly Language Program?
 
| style="width: 15%" |  ||  
 
| style="width: 15%" |  ||  
|-
 
| 2 || Create an HTML page that shows information about you, your course, hobbies, address, and your plans. Use CSS for styling of HTML page so that looks nice.|| Practical No. 3 ||
 
|-
 
| 3 || Create an HTML page with the sole purpose to show multiplication tables of 2 to 10 (row-wise) created by JavaScript. Initially, the page is blank. With help of setInterval function print a row every 5 seconds in different colors and increasing font size.  || Practical No. 4 ||
 
|-
 
| 4 || Create an HTML page with a paragraph written on it and under which 9 buttons are placed in a 3X3 grid. The first row is for buttons labeled with colors names Red, Green, and Blue, the second row with numbers 10, 20, 30, and the third row with different font names. Click event of each of the buttons should make the appropriate change in the style of paragraph.|| Practical No. 5||
 
 
|}
 
|}
  
== '''Lab 1:''' ( week of xx<sup>th</sup> Month 2023 ) ==
+
== '''Lab 1:''' ( week of xx<sup>th</sup> Septermber 2023 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 38: Line 34:
 
! Remarks
 
! Remarks
 
|-
 
|-
| style="width: 8%"  |  
+
| style="width: 8%"  | 1
| style="width: 60%" |
+
| style="width: 60%" | Write a program for 32 bit Binary Addition, subtraction, division, and multiplication.
| style="width: 15%" |  Practical No. 1 ||  
+
| style="width: 15%" |  Practical No. 1 || 32-bit Binary Multiplication [[MPLab 32bit Multiplication|Sample Solution]].
 
|}
 
|}
  
== '''Lab 2:''' ( week of xx<sup>th</sup> Month 2023 ) ==
+
== '''Lab 2:''' ( week of xx<sup>th</sup> September 2023 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 51: Line 47:
 
! Remarks
 
! Remarks
 
|-
 
|-
| style="width: 8%"  |  
+
| style="width: 8%"  | 1
| style="width: 60%" |   
+
| style="width: 60%" |  Write a program for 32 bit BCD Addition and subtraction.
 
| style="width: 15%" |  Practical No. 2 ||  
 
| style="width: 15%" |  Practical No. 2 ||  
 
|}
 
|}
  
== '''Lab 3:''' ( week of xx<sup>th</sup> Month 2023 ) ==
+
== '''Lab 3:''' ( week of xx<sup>th</sup> September 2023 ) ==
{| class="wikitable" style="text-align: justify; width: 100%";
 
|-
 
! Q. NO. 
 
! Program 
 
! Practical No. 
 
! Remarks
 
|-
 
| style="width: 8%"  |
 
| style="width: 60%" | 
 
| style="width: 15%" |  Practical No. 3 ||
 
|}
 
 
 
== '''Lab 3:''' ( week of 15<sup>th</sup> August 2022 ) ==
 
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 78: Line 61:
 
|-
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
| style="width: 60%" |   
+
| style="width: 60%" |  Write a program for Sorting.
Create a form that takes data about a pet. The form must be well designed and should accept the pet’s name, age, weight, type, and what it likes most. At the submission of this form create a Pet object in JavaScript filled with these values and log that object and equivalent JSON on the console.
+
| style="width: 15%" |  Practical No. 3 || Sorting Array Elements [[MPLab3 Sorting|Sample Solution]]
| style="width: 15%" |  Practical No. || Read about JSON for [https://www.w3schools.com/js/js_json_intro.asp w3schools.com]
 
 
|}
 
|}
  
== '''Lab 4:''' ( week of 22<sup>nd</sup> August 2022 ) ==
+
== '''Lab 4:''' ( week of xx<sup>th</sup> September 2023 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 92: Line 74:
 
|-
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
| style="width: 60%"|
+
| style="width: 60%" | Write a program for linear search and binary search.
Suppose you are going to a job fair as a recruiter, and you need to collect a few important details about the candidate. Design a form consisting of all those fields and validate using JavaScript.  
+
| style="width: 15%" |  Practical No. 4 ||  
| style="width: 15%" |  Practice Set No. ||  
 
 
|}
 
|}
  
== '''Lab 5 & 6:''' ( week of 29<sup>th</sup> August & 05<sup>th</sup> September 2022 ) ==
+
== '''Lab 5:''' ( week of xx<sup>th</sup> October 2023 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 106: Line 87:
 
|-
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
| style="width: 60%"|
+
| style="width: 60%" | Write a program to add and subtract two arrays.
Display your systems IP Address, Subnet mask using ipconfig, and find out the network address and the maximum number of systems possible on your network and range of IP addresses available to these systems.
+
| style="width: 15%" |  Practical No. 5 ||  
| style="width: 15%" |  Practical No. 1  ||
 
|-
 
| 2 || With help of ping, check if you are connected to other systems of your network and find the route to connect to that system using tracert. List all the processes which are using ports for TCP protocol.|| Practical No. 2 ||
 
 
|}
 
|}
  
== '''Lab 7:''' ( week of 19<sup>th</sup> September 2022 ) ==
+
== '''Lab 6:''' ( week of 09<sup>th</sup> October 2023 ) ==
{| class="wikitable" style="text-align: justify; width: 100%";
 
|-
 
! Q. NO. 
 
! Program 
 
! Practical No. 
 
! Remarks
 
|-
 
| style="width: 8%"  |
 
| style="width: 60%"| Execute DOM examples from the book
 
| style="width: 15%" |  ||
 
|}
 
 
 
== '''Lab 8:''' ( week of 26<sup>th</sup> September 2022 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";
 
|-
 
! Q. NO. 
 
! Program 
 
! Practical No. 
 
! Remarks
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 60%"| Create a plain HTML page for B.Sc. Hons CS course, mentioning details like fee, eligibility criteria, papers with names and credits, and future possibilities after the course. A button for styling should be there at bottom of the page. On clicking on this button JavaScript should redesign the complete page using jQuery in a nice presentable way.
 
| style="width: 15%" |  Practical No. 8 ||
 
|}
 
 
 
== '''Lab 9''' ( week of 10<sup>th</sup> October 2022 ) ==
 
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 148: Line 100:
 
|-
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
| style="width: 60%"| Store JSON data of few pets that you created in previous practical in a JSON file (copy from console output of previous program to a .json file). Using AJAX, load data from the file and display it in a presentable way using HTML and CSS.
+
| style="width: 60%" | Write a program for binary to ascii conversion.
| style="width: 15%" |  Practical No. 7 ||  
+
| style="width: 15%" |  Practical No. 6 ||  
 
|}
 
|}
  
== '''Lab10''' ( week of 31<sup>st</sup> October 2022 ) ==
+
== '''Lab 7:''' ( week of 16<sup>th</sup> October 2023 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
{| class="wikitable" style="text-align: justify; width: 100%";  
 
|-
 
|-
Line 161: Line 113:
 
|-
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
| style="width: 60%"| Create an HTML page for an image gallery which shows the use of BOOTSTRAP to rearrange and resize its contents on resizing the browser.
+
| style="width: 60%" | Write a program for ascii to binary conversion.
| style="width: 15%" |  Practical No. 9 ||
+
| style="width: 15%" |  Practical No. 7 || ASCII to Binary conversion [[ASCII2Binary|Sample Solution]]
|}
 
 
 
== '''Final Lab''' ( week of 14<sup>th</sup> November 2022 ) ==
 
{| class="wikitable" style="text-align: justify; width: 100%";
 
|-
 
! Q. NO. 
 
! Program 
 
! Practical No.
 
! Remarks
 
|-
 
| style="width: 8%"  |
 
| style="width: 60%"|
 
| style="width: 15%" |  Practical No. 10 ||  
 
|-
 
| 2 || Create index.html file containing two forms for SignIn and SignUp. Submitting SignIn form should search for credentials in mysql database using server created in previous practical. On successful signin, a welcome page should be displayed. Submitting SignUp form should insert new entry for credentials in mysql database using server created in previous practical. On successful signup, user should be returned back to index.html. || Practical No. 11 ||
 
 
|}
 
|}

Latest revision as of 11:06, 7 November 2023

Instructions

  • Please be on time to avoid the Attendance Penalty.
  • Please sign on the Attendance Register before your take a seat.
  • Please put your mobile phone in the Silent Mode.
  • Each lab assignment needs to be submitted in the Google Classroom for the evaluation(will be notified in the GC lab-wise, submit before the deadline).
  • Turn off(shut down) your assigned computer and arrange the chair before you leave the lab.

Resources

Lab 0: Getting Started ( week of 28th August 2023 )

Q. NO. Program Practical No. Remarks
1 Go through the pdf file shared with your class on the whatsapp group, Write a summary of your learning from the Lab 0. The anticipated results of your learning could include:

(1) What is a statement? Write the syntax of a statement.
(2) What is the syntax of a variable? What is the significance of data definition directives (type)?
(3) Write and explain the syntax of basic instructions like MOV, XCHG, ADD, SUB, INC, DEC, NEG.
(4) What is the structure of an Assembly Language Program?

Lab 1: ( week of xxth Septermber 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program for 32 bit Binary Addition, subtraction, division, and multiplication. Practical No. 1 32-bit Binary Multiplication Sample Solution.

Lab 2: ( week of xxth September 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program for 32 bit BCD Addition and subtraction. Practical No. 2

Lab 3: ( week of xxth September 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program for Sorting. Practical No. 3 Sorting Array Elements Sample Solution

Lab 4: ( week of xxth September 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program for linear search and binary search. Practical No. 4

Lab 5: ( week of xxth October 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program to add and subtract two arrays. Practical No. 5

Lab 6: ( week of 09th October 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program for binary to ascii conversion. Practical No. 6

Lab 7: ( week of 16th October 2023 )

Q. NO. Program Practical No. Remarks
1 Write a program for ascii to binary conversion. Practical No. 7 ASCII to Binary conversion Sample Solution