Skip to content

CS401 Assignment 1 Solution Spring 2022

CS401 Assignment  1 Solution Spring 2022: The assignment is submitted after the due date. The submitted assignment does not open or the file is corrupt. Strict action will be taken if the submitted solution is copied from any other student or from the internet. You should concern about the recommended books to clarify your concepts as handouts are not sufficient.

CS502 assignment 1 Solution 2022

No assignment will be accepted after the due date via email in any case whether it is the case of load shedding or internet malfunctioning etc. Hence refrain from uploading assignments in the last hour of the deadline. It is recommended to upload the solution file at least two days before its closing date.

If you people find any mistakes or confusion in the assignment please consult with your instructor before the deadline. After the deadline, no queries will be entertained in this regard.

You are required to write an assembly language program to calculate the exponential value of the last two digits in your VUID. For example, if the VUID is mc020400456, then your code should calculate 56 which is equal to 15625 decimal, and save it in memory.

Attach the screenshot of the AFD debugger showing the final result in the memory.

Now we present a very basic example of multitasking. We have two subroutines written in assembly language. All the techniques discussed here are applicable to code written in higher-level languages as well. However, the code to control this multitasking cannot be easily written in a higher-level language so we write it in assembly language. The two subroutines rotate bars by changing characters at the two corners of the screen and have infinite loops. By hooking the timer interrupt and saving and restoring the registers of the tasks one by one, it appears that both tasks are running simultaneously.

Download All Subjects Midterm past papers Download Now

When the program is executed the threads display the numbers independently. However as keys are pressed and new threads are registered, there is an obvious slowdown in the speed of multitasking. To improve that, we can change the timer interrupt frequency. The following can be used to set to an approximately 1ms interval.

CS401 Assignment 1 Solution Spring 2022, CS401 assignment 1 Solution 2022, cs401 assignment solution 2022, cs401 assignment solution spring 2022.

error: Content is protected !!
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Kindly Disable Your Adblocker Extensions