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.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

# Assignment No. 02 Graded Semester: Spring 2018 CS609: System Programming

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

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

Views: 10230

Attachments:

### Replies to This Discussion

aik to isme " kbhit " ki smjh nhi arhi or dursa ye btao k apna id kese dalna hy divisor me?mera id bc140400028 hy to ye yhan kese ayega?ASCCI form me dalna hy kya ye? me virtual box me window 98 use kr rha hu apni window 10 me

mene compile kiya hy to mujhe ye error arha hy kbhit me error arha hy 'declaration syntax error'...what's wrong?

Attachments:

yup hap win 98

is mein name and id khan daina hai?

#include<dos.h>
#include<stdio.h>

unsigned long int far *time = (unsigned long int far*) 0x0040006C

void main()

{
unsigned long inttx;
tx=(*time);
printf(“I am the Timer Counter and my Value before Delay is = %d” , tx);
tx=tx+36;
while((*time)< = tx);
{
printf(“I am the Timer Counter and my Value after 2 Seconds Delay is = %d” , tx);
}
printf(“My Name is Engr Emh”);
printf(“I am the Timer Counter and my Value before Delay is = %d” , tx);
tx = tx+36;
while((*time) <= tx);
{
printf(“I am the Timer Counter and my Value after 2 Seconds delay is = %d” , tx);
}
printf(“ My Vu Id is Ms000000000 ”);
}

o bhai tumhara  dimagh set hy?ye 1st assignment ka solution hy jo yhan bar bar post kr rhy ho,soye hue ho kya?

This code is on Page 78 of Handouts.

dosri ma b 3 errors a ry hn bhai

naqash have u done it??

nai kaki wala code e likha ha

tmz ,,first assignment ka solution ye hai Foqi rao

#include<BIOS.H>

#include<DOS.H>

unsigned int far *scr = (unsigned int far *) 0xb8000000;

void interrupt (*oldint65)();

void interrupt newint65();

void main() {

oldint65 = getvect(0x65);

setvect(0x65, newint65);

keep(0, 1000);

}

void interrupt newint65() {

if((_AH) == 0) { // Printing Student ID. Attribute Byte is 01110000 or 70H

(*scr) = 0x7042;         // B

(*(scr + 1)) = 0x7043;   // C

(*(scr + 2)) = 0x7031;   // 1

(*(scr + 3)) = 0x7032;   // 2

(*(scr + 4)) = 0x7033;   // 3

(*(scr + 5)) = 0x7034;   // 4

(*(scr + 6)) = 0x7035;   // 5

(*(scr + 7)) = 0x7036;   // 6

(*(scr + 8)) = 0x7037;   // 7

(*(scr + 9)) = 0x7038;   // 8

(*(scr + 10)) = 0x7039;  // 9

outportb(0x20, 0x20); // sending EOI to PIC

return;

}

else {

if((_AH) == 1) { // Printing Student Name

(*scr) = 0x7041;         // A

(*(scr + 1)) = 0x7042;   // B

(*(scr + 2)) = 0x7043;   // C

(*(scr + 3)) = 0x7044;   // D

(*(scr + 4)) = 0x7045;   // E

(*(scr + 5)) = 0x7046;   // F

(*(scr + 6)) = 0x7047;   // G

outportb(0x20, 0x20); // sending EOI to PIC

return;

}

}

}

## Latest Activity

jimmy zack updated their profile
20 minutes ago
ARhum replied to ARhum's discussion Tu Bewafa Kahan TaK Hai,,,///
33 minutes ago
ARhum replied to ARhum's discussion Poetry...!!!
35 minutes ago
ARhum liked ARhum's discussion Pyaray Baba.....!!!!***
36 minutes ago
ARhum liked ARhum's discussion ****..... Tamanna .....*****
36 minutes ago
ARhum liked ARhum's discussion Yehi Jeenay Ki Saza Pai Hai Main Ne....*******
36 minutes ago
36 minutes ago
ARhum posted discussions
37 minutes ago

1

2

3

## HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!