.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

This Content Originally Published by a member of VU Students.

Views: 10703

See Your Saved Posts Timeline

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

 

Note:-

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.

&

.•°How to Download past papers from study groups°•.

 

Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 

CS609 - System Programming Assignment No. 1 Solution and Discussion Spring 2017 Due Date: May 11, 2017

CS609 - System Programming Assignment No. 1 Solution and Discussion Spring 2017 Due Date: May 11, 2017 

 

Assignment No. 01

 

Graded


Total Marks: 15

Semester: Spring 2017


Due Date:11/05/2017

CS609: Systems Programming

 

 

Instructions:

 

 

Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:

 

 

?  The assignment is submitted after due date.

 

?  The submitted assignment does not open or file is corrupt.

?  Assignment is copied (partial or full) from any source (websites, forums, students, etc.) 

 

 

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. 

 

 

Objective:

 

 

The objective of this assignment is to provide hands on experience of:

 

 

?  Getting started with system programming concepts including interrupts, accessing monitor text

 

memory area, and TSRs

 

?  Hands on experience of using Virtual Box and DOS environment

 

 

For any query about the assignment, contact at CS609@vu.edu.pk

 Problem Statement:

 

 

 

Write a simple TSR program that will show your full name whenever “N” key is pressed. 

 

 

 

Instructions:

  1.  In this program, you have to intercept keyboard interrupt (                                     0x09) and write your own interrupt function
  2.  Your complete name must be displayed (whenever N key is pressed) starting from the beginning of

monitor text memory area 0xb8000000

  1.  Name should be displayed in bold, with black foreground color and white background color. There should

be no blinking

  1.  Complete ASCII table and Scan Code table are available on Downloads section of LMS.
  2.  You should install Virtual Box and run Windows 98 on it to compile/run the code. Step by step

instructions of how to install Virtual Box/Windows 98 and making a . COM file (TSR) are already available

on Downloads section of LMS

  1.  After successfully running the code, you should take a snapshot of the output and paste it in your

assignment solution file

  1.  There is no need to submit .COM file. Your solution must be in a single word file (.doc or .docx) containing

complete code and screenshot of final output (i.e Name being displayed on screen).

  1.  You can use Consolas font for enhancing readability of the code in Word file.

 

 

 

Note: 

  1. 1.       You should NOT use interrupt 21/09H to display your name. Name should be displayed only by

accessing monitor text memory area.

 

 

 

Marking Scheme: 7.5 marks of coding + 7.5 marks of output screenshot

 

 

 

Assignment Deadline: 11/05/2017

 

 

 

Best of Luck!

 

Please Share The Idea's about code

TSR Programming Please Shre Ideas 

#include<dos.h>
#include<bios.h>
#include<stdio.h>
#include<conio.h>
void interrupt (*old)(void);
void interrupt myname(void);
char far *scr=(char far* ) 0xb8000000;

void main()
{
   clrscr();
   old=getvect(0x09);    //SAVE OLD VECTOR IN 'OLD'
   setvect(0x09,myname);//SET NEW VECTOR
   keep(0,1000);        //USED IN TSR TO KEEP MEMORY WHEN TERMINATED
   getch();

    }

     void interrupt myname ()
      {
     if( *(scr) == 0x7031)
        (*(scr))=0x704D;    //M
        (*(scr+1))=0x7055;    //U
        (*(scr+2))=0x7048;    //H
        (*(scr+3))=0x7041;    //A
        (*(scr+4))=0x704D;    //M
        (*(scr+5))=0x704D;    //M
        (*(scr+6))=0x7041;    //A
        (*(scr+7))=0x7044;    //D

        (*(scr+8))=0x7020;    //SPACE

        (*(scr+9))=0x7054;    //T
        (*(scr+10))=0x7041;    //A
        (*(scr+11))=0x7052;    //R
        (*(scr+12))=0x7049;    //I
        (*(scr+13))=0x7051;    //Q

        (*old)();        //PUT THE OLD VECTOR BACK IN PLACE
         }
the code compiled successfully but result is not 100% as required its just an other step towards solution someone may try better ideas or append this one where there is mistake/required.

File ko .cpp say save kerna hai ya kis say??

i think we should use 78h

file ko .c sy save karna hai

there is errorin the code in the following line

if( *(scr) == 0x7031)

(not range of given compression) some thing like that

Try This One

#include<dos.h>
#include<bios.h>
#include<stdio.h>
#include<conio.h>
void interrupt (*old)(void);
void interrupt myname(unsigned int AX);
char far *scr=(char far* ) 0xb8000000;

void main()
{
   clrscr();
   old=getvect(0x09);    //SAVE OLD VECTOR IN 'OLD'
   setvect(0x09,myname);//SET NEW VECTOR
   keep(0,1000);        //USED IN TSR TO KEEP MEMORY WHEN TERMINATED
   getch();

    }

     void interrupt myname (unsigned int AX)
      {
      if(*((char*) &AX) == 0x31)
      {
        (*(scr))=0x704D;    //M
        (*(scr+1))=0x7055;    //U
        (*(scr+2))=0x7048;    //H
        (*(scr+3))=0x7041;    //A
        (*(scr+4))=0x704D;    //M
        (*(scr+5))=0x704D;    //M
        (*(scr+6))=0x7041;    //A
        (*(scr+7))=0x7044;    //D

        (*(scr+8))=0x1720;    //SPACE

        (*(scr+9))=0x7054;    //T
        (*(scr+10))=0x7041;    //A
        (*(scr+11))=0x7052;    //R
        (*(scr+12))=0x7049;    //I
        (*(scr+13))=0x7051;    //Q
        }
        else{
        (*old)();}        //PUT THE OLD VECTOR BACK IN PLACE

      }

else wali line mae error a raha hai (declaration terminated incorrectly)

or last braket mae b unexpected ka error a raha hai

RSS

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Latest Activity

+Alezeh Sikandar replied to + M.Tariq Malik's discussion STA301 ALL Current Final Term Papers & Past Final Term Papers at One Place from 12 August 2017 to 24 August 2017 in the group STA301 Statistics and Probability
32 minutes ago
Wajid Ali replied to areeba ***mcs***'s discussion cs402 current final term papers in the group CS402 Theory of Automata
37 minutes ago
Profile IconWajid Ali and Awais Rehman joined + M.Tariq Malik's group
37 minutes ago
Wajid Ali replied to Rio Leo's discussion CS610 ALL Current Final Term Papers Spring 2017 & Past Final Term Papers at One Place from 12 August 2017 to 24 August 2017 in the group CS610 Computer Network
37 minutes ago
Profile IconWajid Ali and sanyha joined + M.Tariq Malik's group
37 minutes ago
Wajid Ali replied to Sabeen's discussion All current final term exams CS 614 spring 2017 from 12/8/2017 till 24/8/2017 in the group CS614 Data Warehousing
38 minutes ago
Wajid Ali replied to ❤sεηsιтιvε(∂εsεят ρяιηcεss)❤'s discussion helping material for final viva or guidance :) :) in the group CS619 Final Project
39 minutes ago
Wajid Ali replied to ❤sεηsιтιvε(∂εsεят ρяιηcεss)❤'s discussion CS604 ALL Current Final Term Papers Fall 2017 & Past Final Term Papers at One Place from 12 august 2017 to 24 august 2017 in the group CS604 Operating Systems
44 minutes ago
آمنہ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Faisly ki Izzattt!!!!
1 hour ago
MCS replied to ❤sεηsιтιvε(∂εsεят ρяιηcεss)❤'s discussion cs609 ALL Current Final Term Papers Fall 2017 & Past Final Term Papers at One Place from 12 august 2017 in the group CS609 System Programming
1 hour ago
MCS replied to Muhammad Adil's discussion Today paper in the group CS609 System Programming
1 hour ago
maria replied to ŇỖÃϻÃŇ ÃŻĮŻ's discussion DOnt Call Me Bahi :'(
1 hour ago

Today Top Members 

Member of The Month

1. ٹمبکٹو

Islamabad, Pakistan

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

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