We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Looking For Something at Site? Search Below

CS609 Assignment No 01 Spring 2020 Solution & Discussion


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 1208

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

Students having same subject can start discussion here to solve assignment, GDB & Quiz and can clear their concepts until solution is provided. 

 

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Then copy Questions from assignment file and paste in Discussion.

 

http://bit.ly/vucodes (For Assignments, GDBs & Online Quizzes Solution)

http://bit.ly/papersvu (For Past Papers, Solved MCQs, Short Notes & More)

Click Here to Search (Looking For something at vustudents.ning.com?)

Click Here to Join (Our facebook study Group)

CS609_Assignment_No_01_Solution_Spring_2020

Download the file, Click on the below link

CS609_Assignment_No_01_Solution_Spring_2020

Learn CS609 System Programmig with Washi - Solution of CS609 Assignment 1 Spring 2020

Link of Solution file is given below and in this video we make a c program which use the int 65h and switch on the Caps lock, Scroll Lock and Num Lock.

Solution Codes: https://drive.google.com/file/d/1jPjnezZo8icHPN90pxLF-72il-4lfQK4/view

CS609 System Programming Assignment 1 Solution & Discussion Spring 2020


 Solution Idea cs609:

 

#include<stdio.h>
#include<BIOS.H>
#include<DOS.H>
#include<conio.h>
void interrupt (*oldint65)( );
void interrupt newint65(void);
char far *scr=(char far*) 0x00400017;
char st1[80] ={" Which toggle button you want to switch on: "};
char st2[80] ={" Press 1 for Caps Lock "};
char st3[80] ={" Press 2 for Scroll Lock "};
char st4[80] ={" Press 3 for Num Lock "};
char st5[80] ={" Press Key(1/2/3): "};
char msg1[80] ={" Caps Lock is On "};
char msg2[80] ={" Scroll Lock is On "};
char msg3[80] ={" Num Lock is On "};
int i=0;
void main()
{
oldint65 = getvect(0x65);
setvect(0x65, newint65);
keep(0, 1000);
}
void interrupt newint65( )
{
printf(" %s \n" , st1);
printf(" %s \n" , st2);
printf(" %s \n" , st3);
printf(" %s \n" , st4);
printf(" %s " , st5);
scanf("%d", &i);
switch (i)
{
case 1:
*scr=64;
(*oldint65)();
_AH=0;
_DX=(unsigned int) msg1;
_AH=0x09;
geninterrupt(0x21);
break;
case 2:
*scr=16;
(*oldint65)();
_AH=1;
_DX=(unsigned int) msg2;
_AH=0x09;
geninterrupt(0x21);
break;
case 3:
*scr=32;
(*oldint65)();
_AH=2;
_DX=(unsigned int) msg3;
_AH=0x09;
geninterrupt(0x21);
break;

default:
printf("Invalid key is press");
}
}

CS609 System Programming Assignment 1 Solution & Discussion Spring 2020


Semester: Spring 2020
CS609: System Programming
Graded
Assignment No. 01
Total Marks: 20
Due Date: May 27, 2020

 

Problem: 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”. 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 Which toggle button you want to switch on:

Press 1 for Caps Lock
Press 2 for Scroll Lock
Press 3 for Num Lock
Press Key(1/2/3):

Instructions:
1) Include all header files and declare 5 string arrays for messages.
2) You should save interrupt 65H vector in a pointer to vector variable name oldint65 through
getvect instruction.
3) Call any new function i.e newint65( ) through setvect instruction.
4) Then use scanf to take input in an integer variable i.e scanf(“%d”, &i)
5) Place service number in AH register. Interrupt 65H will check its value and will perform
relevant function.
6) Interrupt 65H function must check for Service Number using Switch Statement.
8) Use keep() function to make this program TSR.
Note: Your assignment solution will be in this Word file (.doc or .docx) containing code of C

Did anyone run this solution program?

How can it be possible? I am unable to run C program even it compiles successfully.

RSS

Latest Activity

EsT@TiC M@nO posted a status
"anyone have solution file of cs420?"
2 hours ago
Ehtisham Ashfaq posted a status
"salam"
2 hours ago
+!!! ❤️ Shadow Girl❤️!!! replied to Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
2 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
2 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Miss. Churhail's discussion ہار کی پروا کرتا تو جیتنا چھوڑ دیتا
2 hours ago
Tasmia Ittba joined +M.Tariq Malik's group
2 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT401 Financial Accounting II Online Quiz No 01 Fall 2020 Solution / Discussion in the group MGT401 Financial Accounting II
3 hours ago
+M.Tariq Malik liked +M.Tariq Malik's discussion MGT401 Financial Accounting II Online Quiz No 01 Fall 2020 Solution / Discussion
3 hours ago
+M.Tariq Malik added a discussion to the group MGT401 Financial Accounting II
3 hours ago
Muhammad Azeem replied to +M.Tariq Malik's discussion MGT601 GDB No 01 Fall 2020 Solution / Discussion Last Date: 27-11-2020 in the group MGT601 SME Management
3 hours ago
Muhammad Azeem joined +M.Tariq Malik's group
3 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS420 Web Development for Portable Devices Assignment 01 Fall 2020 Solution / Discussion in the group CS420 Web Development for Portable Devices
3 hours ago
+M.Tariq Malik liked +M.Tariq Malik's discussion CS420 Web Development for Portable Devices Assignment 01 Fall 2020 Solution / Discussion
3 hours ago
+M.Tariq Malik added a discussion to the group CS420 Web Development for Portable Devices
3 hours ago
乇メ-丂イひり3刀イ. liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
3 hours ago
乇メ-丂イひり3刀イ. posted a discussion
3 hours ago

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.