Skip to content

CS609 - System Programming

4 Topics 76 Posts
  • CS609 GDB 1 Solution and Discussion

    cs609 gdb 1 solution discussion fall 2019
    4
    0 Votes
    4 Posts
    972 Views
    zareenZ
    Defragmentation is the process of locating the noncontiguous fragments of data and rearranging the fragments and restoring them into fewer fragments or into the whole file. In terms of computer performance File fragmentation directly affects the access and write speed of that hard disk. All computers suffer from fragmentation. We use defragmentation to resolve this issue.Performance of system degraded during defragmentation but improve after it’s completion as compared to previous
  • CS609 Assignment 2 Solution and Discussion

    Solved cs609 assignment 2 solution discussion fall 2019
    3
    0 Votes
    3 Posts
    869 Views
    zareenZ
    Solution: // Header Files #include<stdio.h> #include<conio.h> #include<BIOS.H> #inlcude<DOS.H> void interrupt (*oldTimer)(*void); // To store current Timer vector void interrupt newTimer(); //New Timer Function char far *scr= (char far *)0xB8000000; //Screen segment int in, t=0; void main() { clrscr(); oldTimer=getvect(8); setvect(8,newTimer); getch(); } void interrupt newTimer(); { *(scr+t)=0x2A; t++; if(t>=126) { for(i=0;i<4000;i+=2) { *(scr+i)=0x20; // Blank screen *(scr+i+1)=0x07; } t=0; } (*oldTimer)(); } }
  • CS609 Assignment 3 Solution and Discussion

    Solved cs609 assignment 3 solution discussion fall 2019
    2
    0 Votes
    2 Posts
    689 Views
    zaasmiZ
    #include <dos.h> #include <conio.h> char st [80]; int SendKbdRate(unsigned char data , int maxtry) { unsigned char ch; do { do { ch=inport(0x64); }while (ch&0x02); outport(0x60,data); do { ch = inport(0x64); }while (ch&0x01); if (ch==0xfa) { puts("success\n"); break; } maxtry = maxtry - 1; } while (maxtry != 0); if (maxtry==0) return 1; else } return 0; void main () { //clrscr(); SendKbdRate(0xf3,3); SendKbdRate(0x68,3); gets(st); }
  • CS609 Assignment No. 1 Solution and Discussion

    Solved cs609 assignment 1 solution discussion fall 2019
    4
    0 Votes
    4 Posts
    1k Views
    zaasmiZ
    CS609 Assignment 1 Solution Idea!.. #include<BIOS.H> #include<DOS.H> 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; } } }```
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

0

Online

3.0k

Users

2.8k

Topics

8.5k

Posts
Popular Tags
Online User
| |