Difference between revisions of "Fall 2023: Microprocessors Lab"

From MKWiki
Jump to navigation Jump to search
 
(26 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||
 
 
|}
 
|}
  
Line 40: Line 36:
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
 
| style="width: 60%" | Write a program for 32 bit Binary Addition, subtraction, division, and multiplication.
 
| 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]].
 
|}
 
|}
  
Line 65: Line 61:
 
|-
 
|-
 
| style="width: 8%"  | 1
 
| style="width: 8%"  | 1
| style="width: 60%" |  Write a program for Sorting
+
| style="width: 60%" |  Write a program for Sorting.
| style="width: 15%" |  Practical No. 3 ||  
+
| style="width: 15%" |  Practical No. 3 || Sorting Array Elements [[MPLab3 Sorting|Sample Solution]]
 +
|}
 +
 
 +
== '''Lab 4:''' ( 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%"  | 1
 +
| style="width: 60%" |  Write a program for linear search and binary search.
 +
| style="width: 15%" |  Practical No. 4 ||
 +
|}
 +
 
 +
== '''Lab 5:''' ( week of xx<sup>th</sup> October 2023 ) ==
 +
{| class="wikitable" style="text-align: justify; width: 100%";
 +
|-
 +
! Q. NO. 
 +
! Program 
 +
! Practical No. 
 +
! Remarks
 +
|-
 +
| style="width: 8%"  | 1
 +
| style="width: 60%" |  Write a program to add and subtract two arrays.
 +
| style="width: 15%" |  Practical No. 5 ||
 +
|}
 +
 
 +
== '''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%"  | 1
 +
| style="width: 60%" |  Write a program for binary to ascii conversion.
 +
| style="width: 15%" |  Practical No. 6 ||
 +
|}
 +
 
 +
== '''Lab 7:''' ( week of 16<sup>th</sup> October 2023 ) ==
 +
{| class="wikitable" style="text-align: justify; width: 100%";
 +
|-
 +
! Q. NO. 
 +
! Program 
 +
! Practical No. 
 +
! Remarks
 +
|-
 +
| style="width: 8%"  | 1
 +
| style="width: 60%" |  Write a program for ascii to binary conversion.
 +
| style="width: 15%" |  Practical No. 7 || ASCII to Binary conversion [[ASCII2Binary|Sample Solution]]
 
|}
 
|}

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