<?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[<pre><code>Semester: Fall 2019
</code></pre>
<p dir="auto">CS609: System Programming<br />
Graded<br />
Assignment No. 01	Total Marks: 20</p>
<p dir="auto">Due Date: Nov 11, 2019</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">•	How can interrupts be generated<br />
•	What are Interrupts<br />
•	Interrupt functions writing<br />
•	BIOS data area.<br />
•	TSR program<br />
•	Calling interrupt functions</p>
<p dir="auto">For any assignment related query, contact at</p>
<p dir="auto">Problem Statement:<br />
You are required to write a C program using interrupt 21H to print 3 string arrays i.e “Virtual University of Pakistan”, your own Student Name and father name. Your program should intercept the timer interrupt to call a function name “ScrollLock” to switch on the ScrollLock on the keyboard when the timer interrupt 8h occurs.<br />
Instructions:</p>
<ol>
<li>Declare 3 character strings st1,st2,st3 having Values, Virtual University of Pakistan, your own Student Name and Father Name respectively.</li>
<li>In this program, you will implement interrupt 21H to print the character string values on the top.</li>
<li>Place service number 0x09 in AH register and String in DX to print strings.</li>
<li>You should save interrupt 8H vector in a pointer to vector variable name old through getvect() instruction.</li>
<li>Call any new function called i.e ScrollLock( ) through setvect instruction.</li>
<li>Use keep() function to make this program TSR.</li>
</ol>
<p dir="auto">Note: Your assignment file should be a single Word file (.doc or .docx)</p>
]]></description><link>https://community.secnto.com//topic/546/cs609-assignment-no-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 20:44:39 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/546.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Nov 2019 17:03:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS609 Assignment No. 1 Solution and Discussion on Wed, 20 May 2020 09:58:38 GMT]]></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//post/2495</link><guid isPermaLink="true">https://community.secnto.com//post/2495</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Wed, 20 May 2020 09:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to CS609 Assignment No. 1 Solution and Discussion on Wed, 13 Nov 2019 07:26:56 GMT]]></title><description><![CDATA[<p dir="auto">CS609 Assignment 1 Solution Idea!..</p>
<pre><code>#include&lt;BIOS.H&gt;
#include&lt;DOS.H&gt;
char st1[80] ={"Virtual University of Pakistan$"};
char st2[80] ={"Washi Ali$"};
char st2[80] ={"Tufail$"};
void interrupt (*oldint65)( );
void interrupt newint65( );
void main()
{
oldint65 = getvect(0x65);
setvect(0x65, newint65);
keep(0, 1000);
}
void interrupt newint65( )
{
switch (_AH)
{
case 0:
_AH = 0x09;
_DX = (unsigned int) st1;
geninterrupt (0x21);
break;
case 1:
_AH = 0x09;
_DX = (unsigned int) st2;
geninterrupt (0x21);
break;
case 2:
_AH = 0x09;
_DX = (unsigned int) st3;
geninterrupt (0x21);
break;
}
}
}```</code></pre>
]]></description><link>https://community.secnto.com//post/1482</link><guid isPermaLink="true">https://community.secnto.com//post/1482</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Wed, 13 Nov 2019 07:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to CS609 Assignment No. 1 Solution and Discussion on Wed, 13 Nov 2019 07:24:24 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://youtu.be/dZPLGCriU88" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/dZPLGCriU88</a></p>
]]></description><link>https://community.secnto.com//post/1481</link><guid isPermaLink="true">https://community.secnto.com//post/1481</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Wed, 13 Nov 2019 07:24:24 GMT</pubDate></item><item><title><![CDATA[Reply to CS609 Assignment No. 1 Solution and Discussion on Wed, 13 Nov 2019 07:23:37 GMT]]></title><description><![CDATA[<p dir="auto">CS609 assignment #1 solution<br />
Please check handout example on pg #26.</p>
<p dir="auto">04 - TSR programs and Interrupts</p>
]]></description><link>https://community.secnto.com//post/1480</link><guid isPermaLink="true">https://community.secnto.com//post/1480</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Wed, 13 Nov 2019 07:23:37 GMT</pubDate></item></channel></rss>