<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS609 Assignment No. 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Semester: Spring 2020<br />
CS609: System Programming<br />
Graded<br />
Assignment No. 01	Total Marks: 20</p>
<p dir="auto">Due Date: May 27, 2020</p>
<p dir="auto">Instructions:</p>
<p dir="auto">Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:</p>
<p dir="auto">	The assignment is submitted after due date.<br />
	The submitted assignment does not open or file is corrupt.<br />
	You have not followed steps described in Detailed Instructions of the problem statement.<br />
	Assignment is copied (partial or full) from any source (websites, forums, students, etc.) Strict action will be taken in this regard.</p>
<p dir="auto">Note: You have to upload only .doc or .docx file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.</p>
<p dir="auto">Objectives:</p>
<p dir="auto">The objective of this assignment is to provide hands-on experience of System Programming concepts including:</p>
<p dir="auto">•	Basic interrupts<br />
•	Invoking interrupts<br />
•	Register Values</p>
<p dir="auto">For any assignment related query, contact at <a href="mailto:CS609@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">CS609@vu.edu.pk</a></p>
<p dir="auto">Problem Statement:<br />
Q: Write C program to switch on any one of the toggle button i.e Caps Lock, Scroll Lock and Num Lock by taking any one input i.e 1,2 and 3 respectively. Using Switch Case Statement, switch on the appropriate toggle button and show message for that button. For example if the user enter 3 then Num Lock should be on and message should be displayed “Num Lock is On”<br />
Store all the following 5 lines of strings in 5 array st1,st2,st3, st4, st5 and through interrupt 65H print proper message i.e<br />
Which toggle button you want to switch on:<br />
Press 1 for Caps Lock<br />
Press 2 for Scroll Lock<br />
Press 3 for Num Lock<br />
Press Key(1/2/3):<br />
Instructions:</p>
<ol>
<li>Include all header files and declare 5 string arrays for messages.</li>
<li>You should save interrupt 65H vector in a pointer to vector variable name oldint65 through getvect instruction.</li>
<li>Call any new function i.e newint65( ) through setvect instruction.</li>
<li>Then use scanf to take input in an integer variable i.e scanf(“%d”, &amp;i)</li>
<li>Place service number in AH register. Interrupt 65H will check its value and will perform relevant function.</li>
<li>Interrupt 65H function must check for Service Number using Switch Statement.</li>
<li>Use keep() function to make this program TSR.<br />
Note: Your assignment solution will be in this Word file (.doc or .docx)containing code of C<br />
Best of Luck!</li>
</ol>
<p dir="auto">Solution:</p>
]]></description><link>https://community.secnto.com//topic/1755/cs609-assignment-no-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 21:48:27 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1755.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Jan 2020 12:15:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS609 Assignment No. 1 Solution and Discussion on Wed, 20 May 2020 10:36:37 GMT]]></title><description><![CDATA[<p dir="auto">Please discuss idea solution</p>
]]></description><link>https://community.secnto.com//post/4944</link><guid isPermaLink="true">https://community.secnto.com//post/4944</guid><dc:creator><![CDATA[moaaz]]></dc:creator><pubDate>Wed, 20 May 2020 10:36:37 GMT</pubDate></item></channel></rss>